WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDOMNodeFilter

IID:e4723748-1dd1-11b2-8ee6-866a532a6237
Inherits From:nsISupports

Constants

PRInt16 FILTER_ACCEPT = 1
PRInt16 FILTER_REJECT = 2
PRInt16 FILTER_SKIP = 3
PRUint32 SHOW_ALL = -1
PRUint32 SHOW_ELEMENT = 1
PRUint32 SHOW_ATTRIBUTE = 2
PRUint32 SHOW_TEXT = 4
PRUint32 SHOW_CDATA_SECTION = 8
PRUint32 SHOW_ENTITY_REFERENCE = 16
PRUint32 SHOW_ENTITY = 32
PRUint32 SHOW_PROCESSING_INSTRUCTION = 64
PRUint32 SHOW_COMMENT = 128
PRUint32 SHOW_DOCUMENT = 256
PRUint32 SHOW_DOCUMENT_TYPE = 512
PRUint32 SHOW_DOCUMENT_FRAGMENT = 1024
PRUint32 SHOW_NOTATION = 2048

Methods

PRInt16 acceptNode ( nsIDOMNode n )

PRInt16 acceptNode ( nsIDOMNode n )

Arguments:
n

References

This interface is the type of the following properties:

nsIDOMNodeIterator.filter, nsIDOMTreeWalker.filter

This interface is passed as an argument to the following methods:

nsIDOMDocumentTraversal.createNodeIterator, nsIDOMDocumentTraversal.createTreeWalker

Reference documentation is generated from Mozilla's source.