This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.
The NodeIterator.pointerBeforeReferenceNode read-only property returns a Boolean flag that indicates whether the NodeFilter is anchored before (if this value is true) or after (if this value is false) the anchor node indicated by the NodeIterator.referenceNode property.
Syntax
flag = nodeIterator.pointerBeforeReferenceNode;
Example
var nodeIterator = document.createNodeIterator(
document.body,
NodeFilter.SHOW_ELEMENT,
{ acceptNode: function(node) { return NodeFilter.FILTER_ACCEPT; } },
false
);
flag = nodeIterator.pointerBeforeReferenceNode;
Specifications
| Specification | Status | Comment |
| DOMThe definition of 'NodeIterator.pointerBeforeReferenceNode' in that specification. | Living Standard | Initial definition. |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Chrome
Full support 1 |
Edge
Full support 17 |
Firefox
Full support 3.5 |
IE
No support No |
Opera
Full support Yes |
Safari
Full support 3 |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support 3 |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.'
- Experimental. Expect behavior to change in the future.
See also
- The interface it belongs to:
NodeIterator
NodeIterator.pointerBeforeReferenceNode by Mozilla Contributors is licensed under CC-BY-SA 2.5.