1 This test checks that the NodeIterator and TreeWalker functions do not go past the root element that they are supposed to stay within.
2 NodeIterator: testing nextNode() (5 should be null)
3 [object HTMLDivElement]
4 [object HTMLDivElement]
5 [object HTMLDivElement]
7 NodeIterator: testing previousNode() (7 should be null)
9 TreeWalker: testing nextNode() (11 should be null)
10 [object HTMLDivElement]
11 [object HTMLDivElement]
13 TreeWalker: testing previousNode() (13 should be null)