Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/javascript">
6 function boom()
7 {
8 var a = document.documentElement;
9 var b = document.body;
11 document.removeChild(a);
12 b.contentEditable = "true";
13 document.appendChild(a);
15 function t() {
16 document.removeEventListener("DOMAttrModified", t, false);
17 document.removeChild(a);
18 }
20 document.addEventListener("DOMAttrModified", t, false);
21 document.execCommand("insertunorderedlist", false, "<h1>");
22 document.removeEventListener("DOMAttrModified", t, false);
23 }
25 </script>
26 </head>
28 <body onload="boom()"></body>
29 </html>