2 <script src=
"../../resources/js-test.js"></script>
8 description('Test that DOMSubtreeModified listeners cannot cause inDocument to be incorrect');
11 var container
= document
.getElementById('container');
12 var el
= document
.getElementById('el');
15 document
.removeEventListener('DOMSubtreeModified', broken
, true);
18 container
.appendChild(el
);
21 document
.addEventListener("DOMSubtreeModified", broken
, true);
23 shouldBeTrue("document.contains(document.getElementById('el'))");
24 el
.parentNode
.removeChild(el
);
27 shouldBeNull("document.getElementById('el')");