javascript NodeFilter accept( )

accept( )NN 7 IE n/a DOM 2  

accept(nodeReference)

  

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.

 
Parameters
 
  • 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).


1339,Nickname,Homepage or email,Comments here,Add comment