NodeIterator extension type
The NodeIterator
interface represents an iterator to traverse nodes of
a DOM subtree in document order.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Properties
- filter → NodeFilter?
-
The
NodeIterator.filter
read-only property returns aNodeFilter
object, that is an object which implements anacceptNode(node)
method, used to screen nodes.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- pointerBeforeReferenceNode → bool
-
The
NodeIterator.pointerBeforeReferenceNode
read-only property returns a boolean flag that indicates whether theNodeFilter
is anchored before (if this value istrue
) or after (if this value isfalse
) the anchor node indicated by the NodeIterator.referenceNode property.no setter - referenceNode → Node
-
The
NodeIterator.referenceNode
read-only property returns the Node to which the iterator is anchored; as new nodes are inserted, the iterator remains anchored to the reference node as specified by this property.no setter - root → Node
-
The
NodeIterator.root
read-only property represents the Node that is the root of what the NodeIterator traverses.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- whatToShow → int
-
The
NodeIterator.whatToShow
read-only property represents anunsigned integer
representing a bitmask signifying what types of nodes should be returned by the NodeIterator.no setter
Methods
-
detach(
) → void -
The
NodeIterator.detach()
method is a no-op, kept for backward compatibility only. -
nextNode(
) → Node? -
The
NodeIterator.nextNode()
method returns the next node in the set represented by the NodeIterator and advances the position of the iterator within the set. The first call tonextNode()
returns the first node in the set. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previousNode(
) → Node? -
The
NodeIterator.previousNode()
method returns the previous node in the set represented by the NodeIterator and moves the position of the iterator backwards within the set. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited