NodeFilter Class
The constants of the NodeFilter callback interface (https://dom.spec.whatwg.org/#interface-nodefilter).
public static class NodeFilterConstants
| Name | Description |
|---|---|
| FilterAccept | The node is accepted by the filter. |
| FilterReject | The node and its descendants are rejected by the filter. |
| FilterSkip | The node is skipped by the filter, but its descendants are still considered. |
| ShowAll | Bit mask that shows all the node types. |
| ShowAttribute | Bit mask that shows Attr nodes. |
| ShowCDataSection | Bit mask that shows CDATASection nodes. |
| ShowComment | Bit mask that shows Comment nodes. |
| ShowDocument | Bit mask that shows Document nodes. |
| ShowDocumentFragment | Bit mask that shows DocumentFragment nodes. |
| ShowDocumentType | Bit mask that shows DocumentType nodes. |
| ShowElement | Bit mask that shows Element nodes. |
| ShowEntity | Bit mask for the legacy entity node type, which is never present in a tree. |
| ShowEntityReference | Bit mask for the legacy entity reference node type, which is never present in a tree. |
| ShowNotation | Bit mask for the legacy notation node type, which is never present in a tree. |
| ShowProcessingInstruction | Bit mask that shows ProcessingInstruction nodes. |
| ShowText | Bit mask that shows Text nodes. |
FilterAccept
The node is accepted by the filter.
public const ushort FilterAccept = 1FilterReject
The node and its descendants are rejected by the filter.
public const ushort FilterReject = 2FilterSkip
The node is skipped by the filter, but its descendants are still considered.
public const ushort FilterSkip = 3ShowAll
Bit mask that shows all the node types.
public const uint ShowAll = 4294967295UShowAttribute
Bit mask that shows Attr nodes.
public const uint ShowAttribute = 2UShowCDataSection
Bit mask that shows CDATASection nodes.
public const uint ShowCDataSection = 8UShowComment
Bit mask that shows Comment nodes.
public const uint ShowComment = 128UShowDocument
Bit mask that shows Document nodes.
public const uint ShowDocument = 256UShowDocumentFragment
Bit mask that shows DocumentFragment nodes.
public const uint ShowDocumentFragment = 1024UShowDocumentType
Bit mask that shows DocumentType nodes.
public const uint ShowDocumentType = 512UShowElement
Bit mask that shows Element nodes.
public const uint ShowElement = 1UShowEntity
Bit mask for the legacy entity node type, which is never present in a tree.
public const uint ShowEntity = 32UShowEntityReference
Bit mask for the legacy entity reference node type, which is never present in a tree.
public const uint ShowEntityReference = 16UShowNotation
Bit mask for the legacy notation node type, which is never present in a tree.
public const uint ShowNotation = 2048UShowProcessingInstruction
Bit mask that shows ProcessingInstruction nodes.
public const uint ShowProcessingInstruction = 64UShowText
Bit mask that shows Text nodes.
public const uint ShowText = 4U