NodeFilter : Object

Filters the nodes of a document tree.

Browser/User Agent Support

IEMozillaNetscapeOperaSafariNetscapte
6.0+1.0+6.0+7.0+1.0+no

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
Filters the nodes of a document tree.
6.0+1.0+6.0+7.0+1.0+no
 

Methods

MethodIEMozillaNetscapeOperaSafariNetscapte
Defines a node filter and returns one of the three NodeFilter constants.
6.0+1.0+6.0+7.0+1.0+no
 

References

NodeIterator | TreeWalker

Availability

HTML DOM Level 2 | W3C

Constructor Detail

NodeFilter NodeFilter()

Filters the nodes of a document tree.

Visibility
internal

Method Detail

acceptNode() : Number

Defines a node filter and returns one of the three NodeFilter constants.

Remarks
Returns one of the following three values: 1 = FILTER_ACCEPT (accept the node), 2 = FILTER_REJECT (reject the node), 3 = FILTER_SKIP (skip the node).
See Also

Document.createNodeIterator | Document.createTreeWalker

Availability

HTML DOM Level 2 | W3C