| var script = document.getElementsByTagName("script")[0];
|
| script.parentNode.removeChild(script);
|
| var element = event.srcElement;
|
| document.adoptNode(element);
|
| if (!document.body.innerHTML)
|
| document.execCommand('InsertHTML', false, document.body.innerHTML);
|
| document.removeEventListener("DOMNodeInserted", crash, false);
|
| document.body.innerHTML = "PASS";
|
| document.body.appendChild(element);
|
| element.insertAdjacentHTML('beforeend', '<svg><foreignObject>A</foreignObject></svg>');
|
| document.addEventListener("DOMNodeInserted", crash, false);
|
| document.addEventListener("DOMContentLoaded", function () {
|
| document.execCommand("SelectAll", false, false);
|
| var range = window.getSelection().getRangeAt(0);
|
| var docFragment = range.extractContents();
|
| document.documentElement.firstChild.appendChild(docFragment);
|