Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / editor / libeditor / crashtests / 772282.html
blobbba3d6bd6733a31b1f4a2f7521484989e9e66e5c
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
6 function boom()
8 var root = document.documentElement;
9 while(root.firstChild) { root.firstChild.remove(); }
10 var body = document.createElementNS("http://www.w3.org/1999/xhtml", "body");
11 body.setAttributeNS(null, "contenteditable", "true");
12 var img = document.createElementNS("http://www.w3.org/1999/xhtml", "img");
13 body.appendChild(img);
14 root.appendChild(body);
15 document.removeChild(root);
16 document.appendChild(root);
17 document.execCommand("insertText", false, "5");
18 document.execCommand("selectAll", false, null);
19 document.execCommand("insertParagraph", false, null);
20 document.execCommand("increasefontsize", false, null);
23 </script>
24 </head>
26 <body onload="boom();"></body>
27 </html>