AwaitedDOM/ CaretPosition

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Properties

.offset
W3C

Returns a long representing the character offset in the caret position node.

Type: Promise<number>

.offsetNode
W3C

Returns a Node containing the found node at the caret's position.

Type: SuperNode

Methods

.getClientRect()
W3C

Needs content.

Returns: DOMRect

Edit this page on GitHub