dom.browserrange

Classes

goog.dom.browserrange.AbstractRange
The constructor for abstract ranges. Don't call this from subclasses.
goog.dom.browserrange.GeckoRange
The constructor for Gecko specific browser ranges.
goog.dom.browserrange.IeRange
The constructor for IE specific browser ranges.
goog.dom.browserrange.OperaRange
The constructor for Opera specific browser ranges.
goog.dom.browserrange.W3cRange
The constructor for W3C specific browser ranges.
goog.dom.browserrange.WebKitRange
The constructor for WebKit specific browser ranges.

Public Protected Private

Enumerations

goog.dom.browserrange.Error :
Common error constants.
Constants:
NOT_IMPLEMENTED
No description.
Code »

Global Functions

goog.dom.browserrange.canContainRangeEndpoint(node) boolean
Tests whether the given node can contain a range end point.
Arguments:
node : Node
The node to check.
Returns: boolean  Whether the given node can contain a range end point.
code »
goog.dom.browserrange.createRange(range) !goog.dom.browserrange.AbstractRange
Static method that returns the proper type of browser range.
Arguments:
range : Range | TextRange
A browser range object.
Returns: !goog.dom.browserrange.AbstractRange  A wrapper object.
code »
goog.dom.browserrange.createRangeFromNodeContents(node) !goog.dom.browserrange.AbstractRange
Static method that returns the proper type of browser range.
Arguments:
node : Node
The node to select.
Returns: !goog.dom.browserrange.AbstractRange  A wrapper object.
code »
goog.dom.browserrange.createRangeFromNodes(startNodestartOffsetendNodeendOffset) !goog.dom.browserrange.AbstractRange
Static method that returns the proper type of browser range.
Arguments:
startNode : Node
The node to start with.
startOffset : number
The offset within the node to start. This is either the index into the childNodes array for element startNodes or the index into the character array for text startNodes.
endNode : Node
The node to end with.
endOffset : number
The offset within the node to end. This is either the index into the childNodes array for element endNodes or the index into the character array for text endNodes.
Returns: !goog.dom.browserrange.AbstractRange  A wrapper object.
code »

Package dom

Package Reference