OLD | NEW |
1 Test that iterators are invalidated even if the original context is detached. | 1 Test that iterators are invalidated even if the original context is detached. |
2 | 2 |
3 PASS result.invalidIteratorState is false | 3 PASS result.invalidIteratorState is false |
4 PASS result.iterateNext().tagName is 'span' | 4 PASS result.iterateNext().tagName is 'span' |
5 Modifying the document... | 5 Modifying the document... |
6 PASS result.invalidIteratorState is true | 6 PASS result.invalidIteratorState is true |
7 PASS result.iterateNext() threw exception Error: InvalidStateError: DOM Exceptio
n 11. | 7 PASS result.iterateNext() threw exception InvalidStateError: An attempt was made
to use an object that is not, or is no longer, usable.. |
8 PASS successfullyParsed is true | 8 PASS successfullyParsed is true |
9 | 9 |
10 TEST COMPLETE | 10 TEST COMPLETE |
11 | 11 |
OLD | NEW |