goog.dom.MultiRangeIterator
Classgoog.dom.MultiRangeIterator
> goog.dom.RangeIterator
> goog.dom.TagIterator
> goog.iter.Iterator
goog.dom.MultiRangeIterator(range)
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.
range
{goog.dom.MultiRange
}
.__iterator__(opt_keys)
Inherited from goog.iter.Iterator
.
Returns the {@code Iterator} object itself. This is used to implement the iterator protocol in JavaScript 1.7
opt_keys
{boolean
=}
goog.iter.Iterator
}
.clone()
goog.dom.MultiRangeIterator
}
.constrained
{boolean
}Inherited from goog.dom.TagIterator
.
Whether the iterator is constrained to the starting node and its children.
.copyFrom()
.depth
{number
}Inherited from goog.dom.TagIterator
.
The tree depth of this position relative to where the iterator started. The depth is considered to be the tree depth just past the current node, so if an iterator is at position
(i.e. the node is the div and the type is START_TAG) its depth will be 1.|
.equals(other)
Inherited from goog.dom.TagIterator
.
Test if two iterators are at the same position - i.e. if the node and tagType is the same. This will still return true if the two iterators are moving in opposite directions or have different constraints.
other
{goog.dom.TagIterator
}
boolean
}
.getEndNode()
Node
}
.getEndTextOffset()
number
}
.getStartNode()
Node
}
.getStartTextOffset()
number
}
.isEndTag()
Inherited from goog.dom.TagIterator
.
boolean
}
.isLast()
boolean
}
.isNonElement()
Inherited from goog.dom.TagIterator
.
boolean
}
.isStartTag()
Inherited from goog.dom.TagIterator
.
boolean
}
.isStarted()
[protected]Inherited from goog.dom.TagIterator
.
boolean
}
.next()
.node
{Node
}Inherited from goog.dom.TagIterator
.
The node this position is located on.
.restartTag()
Inherited from goog.dom.TagIterator
.
Restart the current tag.
.reversed
{boolean
}Inherited from goog.dom.TagIterator
.
Whether the node iterator is moving in reverse.
.setPosition(node, opt_tagType, opt_depth)
Inherited from goog.dom.TagIterator
.
Set the position of the iterator. Overwrite the tree node and the position type which can be one of the {@link goog.dom.TagWalkType} token types. Only overwrites the tree depth when the parameter is specified.
node
{Node
}
opt_tagType
{goog.dom.TagWalkType
?=}
opt_depth
{number
=}
.skipTag()
Inherited from goog.dom.TagIterator
.
Skip the current tag.
.splice(var_args)
Inherited from goog.dom.TagIterator
.
Replace the current node with the list of nodes. Reset the iterator so that it visits the first of the nodes next.
var_args
{...Object
}
.tagType
{goog.dom.TagWalkType
}Inherited from goog.dom.TagIterator
.
The type of this position.