CaretPosition - Web APIs | MDN
Instance properties
This interface doesn't inherit any properties.
CaretPosition.offsetNodeRead only-
Returns a
Nodecontaining the found node at the caret's position. CaretPosition.offsetRead only-
Returns a
longrepresenting the offset of the selection in the caret position node. This will be the character offset in a text node or the selected child node's index in an element node.
Instance methods
CaretPosition.getClientRect-
Returns the client rectangle for the caret range.
Specifications
| Specification |
|---|
| CSSOM View Module # caret-position |