Readonly
collapsedReturns true if range is collapsed, and false otherwise.
Readonly
commonReturns the node, furthest away from the document, that is an ancestor of both range's start node and end node.
Readonly
END_Readonly
END_Readonly
endReturns range's end node.
Readonly
endReturns range's end offset.
Readonly
START_Readonly
START_Readonly
startReturns range's start node.
Readonly
startReturns range's start offset.
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.
Returns whether range intersects node.
A fragment of a document that can contain nodes and parts of text nodes.
MDN Reference