2.1.1 [DOM Level 2 - Traversal Range] Section 1.2, Formal Interface Definition

V0001:

The specification states:

 filter of type NodeFilter, readonly
     The NodeFilter used to screen nodes.

IE9 Mode, IE10 Mode, IE11 Mode, and EdgeHTML Mode (All Versions)

The filter property returns a function pointer to the NodeFilter callback.

V0002:

The specification states:

 acceptNode
 Test whether a specified node is visible in the logical view of a TreeWalker or NodeIterator. This function will be called by the implementation of TreeWalker and NodeIterator; it is not normally called directly from user code. (Though you could do so if you wanted to use the same filter to guide your own application logic.)
  
 Parameters
 n of type Node
 The node to check to see if it passes the filter or not.
  
 Return Value
 short  a constant to determine whether the node is accepted, rejected, or skipped, as defined above.
  
 No Exceptions

IE9 Mode, IE10 Mode, IE11 Mode, and EdgeHTML Mode (All Versions)

The acceptNode method can return a hexadecimal string of the form "0x1", which indicates FILTER_ACCEPT behavior. However, in this case, the string is not converted into the FILTER_ACCEPT constant value.

V0007:

The specification states:

 createNodeIterator
  
 Create a new NodeIterator over the subtree rooted at the specified node. Parameters
 root of type Node
  
 The node which will be iterated together with its children. The iterator is initially positioned just before this node. The whatToShow flags and the filter, if any, are not considered when setting this position. The root must not be null.
 whatToShow of type unsigned long
  
 This flag specifies which node types may appear in the logical view of the tree presented by the iterator. See the description of NodeFilter for the set of possible SHOW_ values.
  
 These flags can be combined using OR.
 filter of type NodeFilter
  
 The NodeFilter to be used with this TreeWalker, or null to indicate no filter.
 entityReferenceExpansion of type boolean
  
 The value of this flag determines whether entity reference nodes are expanded.
  
 Return Value
 NodeIterator  The newly created NodeIterator.
 Exceptions
 DOMException NOT_SUPPORTED_ERR: Raised if the specified root is null.
  

IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

The NodeIterator returned by the createNodeIterator method has the whatToShow property value set as -1 instead of the expected value of 0xFFFFFFFF.

Show: