| Introduced in: | DOM 2 Core |
Filters are objects that know how to "filter out" nodes.
If a NodeIterator or TreeWalker is given a NodeFilter, it
applies the filter before it returns the next node. If the filter says to accept the node, the traversal logic
returns it; otherwise, traversal looks for the next node and pretends that the node that was rejected was not there.
public static const FILTER_ACCEPT:Number = 1| Introduced in: | DOM 2 Core |
Accept the node. Navigation methods defined for NodeIterator or TreeWalker will return this node.
public static const FILTER_REJECT:Number = 2| Introduced in: | DOM 2 Core |
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.
public static const FILTER_SKIP:Number = 3| Introduced in: | DOM 2 Core |
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.
public static const SHOW_ALL:Number = -1| Introduced in: | DOM 2 Core |
Show all Nodes.
public static const SHOW_ATTRIBUTE:Number = 2| Introduced in: | DOM 2 Core |
Show Attr nodes. This is meaningful only when creating an iterator or tree-walker with an attribute node as
its root; in this case, it means that the attribute node will appear in the first position of the iteration
or traversal. Since attributes are never children of other nodes, they do not appear when traversing over
the document tree.
public static const SHOW_CDATA_SECTION:Number = 8| Introduced in: | DOM 2 Core |
Show CDATASection nodes.
public static const SHOW_COMMENT:Number = 128| Introduced in: | DOM 2 Core |
Show Comment nodes.
public static const SHOW_DOCUMENT:Number = 256| Introduced in: | DOM 2 Core |
Show Document nodes.
public static const SHOW_DOCUMENT_FRAGMENT:Number = 1024| Introduced in: | DOM 2 Core |
Show DocumentFragment nodes.
public static const SHOW_DOCUMENT_TYPE:Number = 512| Introduced in: | DOM 2 Core |
Show DocumentType nodes.
public static const SHOW_ELEMENT:Number = 1| Introduced in: | DOM 2 Core |
Show Element nodes.
public static const SHOW_ENTITY:Number = 32| Introduced in: | DOM 2 Core |
Show Entity nodes. This is meaningful only when creating an iterator or tree-walker with an Entity node as
its root; in this case, it means that the Entity node will appear in the first position of the traversal.
Since entities are not part of the document tree, they do not appear when traversing over the document tree.
public static const SHOW_ENTITY_REFERENCE:Number = 16| Introduced in: | DOM 2 Core |
Show EntityReference nodes.
public static const SHOW_NOTATION:Number = 2048| Introduced in: | DOM 2 Core |
Show Notation nodes. This is meaningful only when creating an iterator or tree-walker with a Notation node as
its root; in this case, it means that the Notation node will appear in the first position of the traversal.
Since notations are not part of the document tree, they do not appear when traversing over the document tree.
public static const SHOW_PROCESSING_INSTRUCTION:Number = 64| Introduced in: | DOM 2 Core |
Show ProcessingInstruction nodes.
public static const SHOW_TEXT:Number = 4| Introduced in: | DOM 2 Core |
Show Text nodes.
Mon Aug 17 2009, 10:08 AM -04:00