Javascript Reference
Categories: NodeFilter

javascript NodeFilter Description

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

  

The NodeFilter object provides a mechanism for the NodeIterator and TreeWalker objects to determine which nodes or classes of nodes are to be accepted or rejected for inclusion into one of the special node lists. The lone accept( ) method is invoked silently by the NodeInterator and TreeWalker objects whenever the objects are asked to point to the next node in sequence. The NodeFilter object is also the holder of two sets of constants that are used in a variety of creation method calls and user-defined filter functions. See the TreeWalker object for an example, and the document.createTreeWalker( ) method for application of the constants.

 
Object Model Reference
 
NodeFilter
 
Object-Specific Properties
 
FILTER_ACCEPTFILTER_REJECTFILTER_SKIP
SHOW_ALLSHOW_ATTRIBUTESHOW_CDATA_SECTION
SHOW_COMMENTSHOW_DOCUMENTSHOW_DOCUMENT_FRAGMENT
SHOW_DOCUMENT_TYPESHOW_ELEMENTSHOW_ENTITY
SHOW_NOTATIONSHOW_PROCESSING_INSTRUCTIONSHOW_TEXT
 
Object-Specific Methods
 
accept( )
 
Object-Specific Event Handler Properties

None.


Powered by Linode.