Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1272490.html
blob2a8f1d9f9c9b8eab4f4170785009352804ddc279
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script>
6 window.onload = function () {
7 var childDocument = document.getElementsByTagName("iframe")[0].contentDocument;
8 childDocument.designMode = "on";
9 function onAttrModified(aEvent) {
10 childDocument.removeEventListener("DOMAttrModified", onAttrModified);
11 // Remove the editor from document during executing "insertOrderedList".
12 document.body.innerHTML = "";
14 childDocument.addEventListener("DOMAttrModified", onAttrModified);
15 childDocument.execCommand("insertOrderedList", false, "1");
17 </script>
18 </head>
19 <body><iframe></iframe></body>
20 </html>