IRange
The Range interface represents a fragment of a document that can
contain nodes and parts of text nodes in a given document.
Gets the common ancestor node of the contained range.
Gets the offset of the EndContainer in the document.
Gets the node that starts the container.
Gets a value that indicates if the representation is collapsed.
Gets the offset of the StartContainer in the document.
Gets the node that ends the container.
void ClearContent()
Clears the contained nodes.
Creates a copy of this range.
Collapses the range to a single level.
Compares the boundary points of the range.
Compares the node to the given offset and returns the relative
position.
Checks if the given node is within this range by using a offset.
Creates a document fragement of the contained nodes.
void Detach()
Detaches the range from the DOM tree.
Selects the end of the given range by using an exclusive reference
node.
Selects the end of the given range by using an inclusive reference
node.
Selects the end of the given range by using the given reference
node and a relative offset.
Clears the node representation and returns a document fragment with
the originally contained nodes.
Inserts a node into the range.
Checks if the given node is intersected by this range.
Selects the contained node.
Selects the contained nodes by taking a reference node as origin.
Selects the start of the given range by using an exclusive
reference node.
Selects the start of the given range by using an inclusive
reference node.
Selects the start of the given range by using the given reference
node and a relative offset.
Includes the given node with its siblings in the range.