Liking cljdoc? Tell your friends :D

web.NodeIterator

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.
raw docstring

detachcljs

(detach this)

Method.

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.

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`
sourceraw docstring

expand-entity-referencescljs

(expand-entity-references this)

Property.

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.

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`
sourceraw docstring

filtercljs

(filter this)

Property.

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.

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`
sourceraw docstring

next-nodecljs

(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`
sourceraw docstring

pointer-before-reference-nodecljs

(pointer-before-reference-node this)

Property.

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.

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`
sourceraw docstring

previous-nodecljs

(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`
sourceraw docstring

reference-nodecljs

(reference-node this)

Property.

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.

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`
sourceraw docstring

rootcljs

(root this)

Property.

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.

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`
sourceraw docstring

set-expand-entity-references!cljs

(set-expand-entity-references! this val)

Property.

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.

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`
sourceraw docstring

set-filter!cljs

(set-filter! this val)

Property.

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.

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`
sourceraw docstring

set-pointer-before-reference-node!cljs

(set-pointer-before-reference-node! this val)

Property.

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.

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`
sourceraw docstring

set-reference-node!cljs

(set-reference-node! this val)

Property.

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.

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`
sourceraw docstring

set-root!cljs

(set-root! this val)

Property.

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.

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`
sourceraw docstring

set-what-to-show!cljs

(set-what-to-show! this val)

Property.

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.web-components.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.

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.web-components.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`
sourceraw docstring

what-to-showcljs

(what-to-show this)

Property.

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.web-components.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.

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.web-components.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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close