class js.html.Range
Available on jsThe 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
var END_TO_END:Int
var END_TO_START:Int
var NODE_AFTER:Int
var NODE_BEFORE:Int
var NODE_INSIDE:Int
var START_TO_END:Int
var START_TO_START:Int
Instance Fields
var collapsed:Bool
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 endOffset:Int
Returns a number representing where in the endContainer the Range ends. Getter throws DOMException.
var startOffset:Int
Returns a number representing where in the startContainer the Range starts. Getter throws DOMException.