4 var script
= document
.getElementsByTagName("script")[0];
5 script
.parentNode
.removeChild(script
);
9 var element
= event
.srcElement
;
10 document
.adoptNode(element
);
11 if (!document
.body
.innerHTML
)
13 document
.execCommand('InsertHTML', false, document
.body
.innerHTML
);
15 document
.removeEventListener("DOMNodeInserted", crash
, false);
16 document
.body
.innerHTML
= "PASS";
20 document
.body
.appendChild(element
);
21 element
.insertAdjacentHTML('beforeend', '<svg><foreignObject>A</foreignObject></svg>');
25 document
.addEventListener("DOMNodeInserted", crash
, false);
26 document
.addEventListener("DOMContentLoaded", function () {
27 document
.execCommand("SelectAll", false, false);
28 var range
= window
.getSelection().getRangeAt(0);
29 var docFragment
= range
.extractContents();
30 document
.documentElement
.firstChild
.appendChild(docFragment
);