search

goog.dom.TextRangeIterator

Provided By
Extends
All Implemented Interfaces

Subclass of goog.dom.TagIterator that iterates over a DOM range. It adds functions to determine the portion of each text node that is selected.

new TextRangeIterator( startNode, startOffset, endNode, endOffset, opt_reverse )

Parameters
startNode(Node|null)

The starting node position.

startOffsetnumber

The offset in to startNode. If startNode is an element, indicates an offset in to childNodes. If startNode is a text node, indicates an offset in to nodeValue.

endNode(Node|null)

The ending node position.

endOffsetnumber

The offset in to endNode. If endNode is an element, indicates an offset in to childNodes. If endNode is a text node, indicates an offset in to nodeValue.

opt_reverseboolean=

Whether to traverse nodes in reverse.

Instance Methods

Instance Properties