Interface

Range

Range

A fragment of a document that can contain nodes and parts of text nodes.

View Source js/lib.dom.d.ts, line 5645

Members

Node

# commonAncestorContainer

Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node.

View Source js/lib.dom.d.ts, line 5648

number

# comparePoint

Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.

View Source js/lib.dom.d.ts, line 5653

boolean

# intersectsNode

Returns whether range intersects node.

View Source js/lib.dom.d.ts, line 5658