6 <div contenteditable='true' id='div'
>
9 testRunner
.dumpAsText();
11 var div
= document
.getElementById('div');
13 document
.body
.contentEditable
= 'true';
16 embed
= document
.createElement('embed');
17 embed
.setAttribute('type', 'text/foo');
18 document
.body
.appendChild(embed
);
19 document
.body
.cloneNode(true);
22 function removeContent() {
23 document
.body
.innerHTML
= "Tests that we don't crash due to incorrect load event firing during cloneNode. <br />\
24 PASS. WebKit didn't crash.";
27 window
.addEventListener('load', removeContent
, false);
28 document
.addEventListener('DOMContentLoaded', crash
, false);