Javascript Reference
Categories: NodeFilter

javascript NodeFilter accept( )

@March 15, 2008, 1:22 a.m.
accept( )Firefox/Netscape/NN 7 IE n/a Chrome/Safari/DOM 2  



Returns an integer signifying whether a node is to be included in the NodeIterator or TreeWalker object's list. This method is invoked automatically by the objects whenever one of their pointer-moving methods is invoked.

  • Reference to the document tree node under test. Passed automatically to the method when invoked by the NodeInterator and TreeWalker objects.
Returned Value

Integer value, each of which has a corresponding constant value associated with the NodeFilter object: 1 (NodeFilter.FILTER_ACCEPT); 2 (NodeFilter.FILTER_REJECT); 3 (NodeFilter.FILTER_SKIP).

Powered by Linode.