1 Test that iterators are invalidated even if the original context is detached.
3 PASS result.invalidIteratorState is false
4 PASS result.iterateNext().tagName is 'span'
5 Modifying the document...
6 PASS result.invalidIteratorState is true
7 PASS result.iterateNext() threw exception InvalidStateError: Failed to execute 'iterateNext' on 'XPathResult': The document has mutated since the result was returned..
8 PASS successfullyParsed is true