3 <script src=
"../../../resources/js-test.js"></script>
4 <div id=
"parent1">text
</div>
6 var parent
= document
.getElementById('parent1');
7 var target
= parent
.firstChild
;
9 function handleInsertion() {
10 document
.removeEventListener('DOMNodeInserted', handleInsertion
);
11 target
.nextSibling
.remove();
14 document
.addEventListener('DOMNodeInserted', handleInsertion
, false);
16 //window.getSelection().addRange(r);
17 r
.setStart(target
, 0);
20 description('No assertion failures even if an DOM mutation event handler updates the new node created by Text::splitText.');
21 testPassed(' if the test wasn\'t terminated by an assertion.');