The Range
object represents a fragment of a document that can contain nodes and parts of text nodes in a given document.
A range can be created using the Document.createRange
method of the Document
object. Range objects can also be retrieved by using the Selection.getRangeAt
method of the Selection
object.
boolean
indicating whether the range's start and end points are at the same position. Getter throws DOMException.Node
that contains the startContainer and endContainer Nodes. Getter throws DOMException.Node
within which the Range ends. Getter throws DOMException.Node
within which the Range starts. Getter throws DOMException.