4 <link rel=
"help" href=
"http://dom.spec.whatwg.org/#dom-nodeiterator-detach">
5 <script src=
"../../../resources/js-test.js"></script>
9 description("This test checks that NodeIterator.detach() is a no-op.");
11 function createSampleDOM()
13 var div
= document
.createElement('div');
15 div
.innerHTML
= '<div id="b">';
19 var root
= createSampleDOM();
20 var iterator
= document
.createNodeIterator(root
);
21 shouldBeEqualToString('iterator.nextNode().id', 'a');
22 shouldNotThrow('iterator.detach()');
23 shouldBeEqualToString('iterator.nextNode().id', 'b');