offsetNode

external val offsetNode: Node(source)

The offsetNode property of the CaretPosition interface returns a Node containing the found node at the caret's position.

MDN Reference