Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1345015.html
blob378146957859d4f45274cd67e22d48af2129e8e2
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="application/javascript">
5 document.designMode = "on";
6 let selection = window.getSelection();
8 let foo = document.createElement('foo');
9 let div = document.createElement('div');
10 document.documentElement.appendChild(foo);
11 document.documentElement.appendChild(div);
12 foo.outerHTML = '<foo>';
14 let range = document.createRange();
15 range.selectNode(div);
16 selection.addRange(range);
17 range.setStart(foo, 0);
19 range = document.createRange();
20 range.selectNode(document.documentElement);
21 selection.addRange(range);
23 document.execCommand('insertparagraph', false, null);
24 </script>
25 </head>
26 <body>
27 </body>
28 </html>