NodeIterator.pointerBeforeReferenceNode

  • Revision slug: Web/API/NodeIterator.pointerBeforeReferenceNode
  • Revision title: NodeIterator.pointerBeforeReferenceNode
  • Revision id: 404269
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 4 words added, 4 words removedMoved From DOM/NodeIterator.pointerBeforeReferenceNode to Web/API/NodeIterator.pointerBeforeReferenceNode

Revision Content

{{ DomRef() }}

{{ gecko_minversion_header("1.9.1") }}

{{ non-standard_header() }}

Summary

A Boolean value that indicates whether the NodeIterator is anchored before (if this value is true) or after (if this value is false) the anchor node indicated by the referenceNode property.

Syntax

flag = nodeIterator.pointerBeforeReferenceNode;

Notes

This property was introduced by WebKit and is used for testing; it can also be used by debuggers.  It is not part of the DOM specification.

Example

var nodeIterator = document.createNodeIterator(
    document.body,
    NodeFilter.SHOW_ELEMENT,
    { acceptNode: function(node) { return NodeFilter.FILTER_ACCEPT; } },
    false
);
flag = nodeIterator.pointerBeforeReferenceNode;

 

Revision Source

<p>{{ DomRef() }}</p>
<p>{{ gecko_minversion_header("1.9.1") }}</p>
<p>{{ non-standard_header() }}</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>A Boolean value that indicates whether the <a class="internal" href="/En/DOM/NodeIterator" title="En/DOM/NodeIterator"><code>NodeIterator</code></a> is anchored before (if this value is <code>true</code>) or after (if this value is <code>false</code>) the anchor node indicated by the <a class="internal" href="/En/DOM/NodeIterator.referenceNode" title="En/DOM/NodeIterator.referenceNode"><code>referenceNode</code></a> property.</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre class="eval">flag = nodeIterator.pointerBeforeReferenceNode;
</pre>
<h3 id="Notes">Notes</h3>
<p>This property was introduced by WebKit and is used for testing; it can also be used by debuggers.  It is not part of the DOM specification.</p>
<h3 id="Example" name="Example">Example</h3>
<pre class="eval">var nodeIterator = document.createNodeIterator(
    document.body,
    NodeFilter.SHOW_ELEMENT,
    { acceptNode: function(node) { return NodeFilter.FILTER_ACCEPT; } },
    false
);
flag = nodeIterator.pointerBeforeReferenceNode;</pre>
<p> </p>
Revert to this revision