2 <script src=
"../../resources/js-test.js"></script>
8 description('Test that DOMSubtreeModified listeners cannot cause DocumentOrderedMap to be incorrect');
11 var container
= document
.getElementById('container');
12 var el
= document
.getElementById('el');
15 document
.removeEventListener('DOMSubtreeModified', broken
, true);
17 } else if (counter
== 1)
18 container
.innerHTML
= '';
20 container
.appendChild(el
);
23 document
.addEventListener("DOMSubtreeModified", broken
, true);
25 shouldBeTrue("document.contains(el)");
26 el
.parentNode
.removeChild(el
);
29 shouldBeNull("document.getElementById('el')");