The NodeIterator interface represents an iterator over the members a list of the nodes in a subtree of the DOM. The nodes will be in document order.
The NodeIterator interface represents an iterator over the members a list of the nodes in a subtree of the DOM. The nodes will be in document order.
(detach this)
Method.
[Obsolute]
The NodeIterator.detach() method is a no-op, kept for backward only.
nodeIterator.detach();
See also: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/detach
Method. [Obsolute] The NodeIterator.detach() method is a no-op, kept for backward only. `nodeIterator.detach();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/detach`
(expand-entity-references this)
Property.
[Read Only] [Deprecated]
The NodeIterator.expandEntityReferences read-only property returns
js.Boolean
flag indicating whether or not the children of entity
nodes are visible to the web.NodeIterator
.
expand = nodeIterator.expandEntityReferences;
See also: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/expandEntityReferences
Property. [Read Only] [Deprecated] The NodeIterator.expandEntityReferences read-only property returns `js.Boolean` flag indicating whether or not the children of entity nodes are visible to the `web.NodeIterator`. `expand = nodeIterator.expandEntityReferences;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/expandEntityReferences`
(filter this)
Property.
[Read Only]
The NodeIterator.filter read-only method returns a web.NodeFilter
that is an object implement an acceptNode(node) method, used
screen nodes.
nodeFilter = nodeIterator.filter;
See also: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/filter
Property. [Read Only] The NodeIterator.filter read-only method returns a `web.NodeFilter` that is an object implement an acceptNode(node) method, used screen nodes. `nodeFilter = nodeIterator.filter;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/filter`
(next-node this)
Method.
The NodeIterator.nextNode() method returns the next node in the
represented by the web.NodeIterator
and advances the position
the iterator within the set. The first call to nextNode() returns
first node in the set.
node = nodeIterator.nextNode();
See also: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/nextNode
Method. The NodeIterator.nextNode() method returns the next node in the represented by the `web.NodeIterator` and advances the position the iterator within the set. The first call to nextNode() returns first node in the set. `node = nodeIterator.nextNode();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/nextNode`
(pointer-before-reference-node this)
Property.
[Read Only] [Experimental]
The NodeIterator.pointerBeforeReferenceNode read-only property
a js.Boolean
flag that indicates whether the web.NodeFilter
anchored before (if this value is true) or after (if this value
false) the anchor node indicated by the NodeIterator.referenceNode
flag = nodeIterator.pointerBeforeReferenceNode;
See also: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/pointerBeforeReferenceNode
Property. [Read Only] [Experimental] The NodeIterator.pointerBeforeReferenceNode read-only property a `js.Boolean` flag that indicates whether the `web.NodeFilter` anchored before (if this value is true) or after (if this value false) the anchor node indicated by the `NodeIterator.referenceNode` `flag = nodeIterator.pointerBeforeReferenceNode;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/pointerBeforeReferenceNode`
(previous-node this)
Method.
The NodeIterator.previousNode() method returns the previous node
the set represented by the web.NodeIterator
and moves the position
the iterator backwards within the set.
node = nodeIterator.previousNode();
See also: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/previousNode
Method. The NodeIterator.previousNode() method returns the previous node the set represented by the `web.NodeIterator` and moves the position the iterator backwards within the set. `node = nodeIterator.previousNode();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/previousNode`
(reference-node this)
Property.
[Read Only] [Experimental]
The NodeIterator.referenceNode read-only returns the web.Node
which the iterator is anchored; as new nodes are inserted, the
remains anchored to the reference node as specified by this property.
node = nodeIterator.referenceNode;
See also: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/referenceNode
Property. [Read Only] [Experimental] The NodeIterator.referenceNode read-only returns the `web.Node` which the iterator is anchored; as new nodes are inserted, the remains anchored to the reference node as specified by this property. `node = nodeIterator.referenceNode;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/referenceNode`
(root this)
Property.
[Read Only]
The NodeIterator.root read-only property represents the web.Node
is the root of what the web.NodeIterator
traverses.
root = nodeIterator.root;
See also: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/root
Property. [Read Only] The NodeIterator.root read-only property represents the `web.Node` is the root of what the `web.NodeIterator` traverses. `root = nodeIterator.root;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/root`
(what-to-show this)
Property.
[Read Only]
The NodeIterator.whatToShow read-only property represents an
integer representing a bitmask signifying what types of nodes
be returned by the web.NodeIterator
.
`var nodeTypes = nodeIterator.whatToShow;
The values that can be combined to form the bitmask are:
\t\t\tConstant \t\t\tNumerical value \t\t\tDescription
\t\t\tNodeFilter.SHOW_ALL \t\t\t-1 (that is the max value of unsigned long) \t\t\tShows all nodes.
\t\t\tNodeFilter.SHOW_ATTRIBUTE
\t\t\t2
\t\t\tShows attribute web.Attr
nodes. This is meaningful only when creating a web.NodeIterator
or web.TreeWalker
with an web.Attr
node as its root; in this case, it means that the attribute node will appear in the first position of the iteration or traversal. Since attributes are never children of other nodes, they do not appear when traversing over the document tree.
\t\t\tNodeFilter.SHOW_CDATA_SECTION
\t\t\t8
\t\t\tShows web.CDATASection
nodes.
\t\t\tNodeFilter.SHOW_COMMENT
\t\t\t128
\t\t\tShows web.Comment
nodes.
\t\t\tNodeFilter.SHOW_DOCUMENT
\t\t\t256
\t\t\tShows web.Document
nodes.
\t\t\tNodeFilter.SHOW_DOCUMENT_FRAGMENT
\t\t\t1024
\t\t\tShows web.DocumentFragment
nodes.
\t\t\tNodeFilter.SHOW_DOCUMENT_TYPE
\t\t\t512
\t\t\tShows web.DocumentType
nodes.
\t\t\tNodeFilter.SHOW_ELEMENT
\t\t\t1
\t\t\tShows web.Element
nodes.
\t\t\tNodeFilter.SHOW_ENTITY
\t\t\t32
\t\t\tShows Entity
nodes. This is meaningful only when creating a web.NodeIterator
or web.TreeWalker
with an Entity
node as its root; in this case, it means that the Entity
node will appear in the first position of the traversal. Since entities are not part of the document tree, they do not appear when traversing over the document tree.
\t\t\tNodeFilter.SHOW_ENTITY_REFERENCE
\t\t\t16
\t\t\tShows EntityReference
nodes.
\t\t\tNodeFilter.SHOW_NOTATION
\t\t\t2048
\t\t\tShows web.other.Notation
nodes. This is meaningful only when creating a web.NodeIterator
or web.TreeWalker
with a web.other.Notation
node as its root; in this case, it means that the web.other.Notation
node will appear in the first position of the traversal. Since entities are not part of the document tree, they do not appear when traversing over the document tree.
\t\t\tNodeFilter.SHOW_PROCESSING_INSTRUCTION
\t\t\t64
\t\t\tShows web.ProcessingInstruction
nodes.
\t\t\tNodeFilter.SHOW_TEXT
\t\t\t4
\t\t\tShows web.Text
nodes.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/whatToShow
Property. [Read Only] The NodeIterator.whatToShow read-only property represents an integer representing a bitmask signifying what types of nodes be returned by the `web.NodeIterator`. `var nodeTypes = nodeIterator.whatToShow; The values that can be combined to form the bitmask are: \t\t\tConstant \t\t\tNumerical value \t\t\tDescription \t\t\tNodeFilter.SHOW_ALL \t\t\t-1 (that is the max value of unsigned long) \t\t\tShows all nodes. \t\t\tNodeFilter.SHOW_ATTRIBUTE \t\t\t2 \t\t\tShows attribute `web.Attr` nodes. This is meaningful only when creating a `web.NodeIterator` or `web.TreeWalker` with an `web.Attr` node as its root; in this case, it means that the attribute node will appear in the first position of the iteration or traversal. Since attributes are never children of other nodes, they do not appear when traversing over the document tree. \t\t\tNodeFilter.SHOW_CDATA_SECTION \t\t\t8 \t\t\tShows `web.CDATASection` nodes. \t\t\tNodeFilter.SHOW_COMMENT \t\t\t128 \t\t\tShows `web.Comment` nodes. \t\t\tNodeFilter.SHOW_DOCUMENT \t\t\t256 \t\t\tShows `web.Document` nodes. \t\t\tNodeFilter.SHOW_DOCUMENT_FRAGMENT \t\t\t1024 \t\t\tShows `web.DocumentFragment` nodes. \t\t\tNodeFilter.SHOW_DOCUMENT_TYPE \t\t\t512 \t\t\tShows `web.DocumentType` nodes. \t\t\tNodeFilter.SHOW_ELEMENT \t\t\t1 \t\t\tShows `web.Element` nodes. \t\t\tNodeFilter.SHOW_ENTITY \t\t\t32 \t\t\tShows `Entity` nodes. This is meaningful only when creating a `web.NodeIterator` or `web.TreeWalker` with an `Entity` node as its root; in this case, it means that the `Entity` node will appear in the first position of the traversal. Since entities are not part of the document tree, they do not appear when traversing over the document tree. \t\t\tNodeFilter.SHOW_ENTITY_REFERENCE \t\t\t16 \t\t\tShows `EntityReference` nodes. \t\t\tNodeFilter.SHOW_NOTATION \t\t\t2048 \t\t\tShows `web.other.Notation` nodes. This is meaningful only when creating a `web.NodeIterator` or `web.TreeWalker` with a `web.other.Notation` node as its root; in this case, it means that the `web.other.Notation` node will appear in the first position of the traversal. Since entities are not part of the document tree, they do not appear when traversing over the document tree. \t\t\tNodeFilter.SHOW_PROCESSING_INSTRUCTION \t\t\t64 \t\t\tShows `web.ProcessingInstruction` nodes. \t\t\tNodeFilter.SHOW_TEXT \t\t\t4 \t\t\tShows `web.Text` nodes.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/whatToShow`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close