class js.html.Range
Available on js
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.
Documentation for this class was provided by MDN.
Class Fields
Instance Fields
Returns a boolean
indicating whether the range's start and end points are at the same position. Getter throws DOMException.
var commonAncestorContainer:Node
Returns the deepest Node
that contains the startContainer and endContainer Nodes. Getter throws DOMException.
var startOffset:Int
Returns a number representing where in the startContainer the Range starts. Getter throws DOMException.