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.

Add a note User Contributed Notes
August 16, 2005, 1:28 am surkov at dc dot baikal dot ru
Definition group Constants returned by acceptNode ( DOM Level 2 Core Specification at w3.org)

FILTER_ACCEPT
Accept the node. Navigation methods defined for NodeIterator or TreeWalker will return this node.
FILTER_REJECT
Reject the node. Navigation methods defined for NodeIterator or TreeWalker will not return this node. For TreeWalker, the children of this node will also be rejected. NodeIterators treat this as a synonym for FILTER_SKIP.
FILTER_SKIP
Skip this single node. Navigation methods defined for NodeIterator or TreeWalker will not return this node. For both NodeIterator and TreeWalker, the children of this node will still be considered.

Copyright © 1999 - 2005 XULPlanet.com