Backed out 2 changesets (bug 1943998) for causing wd failures @ phases.py CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1375131.html
blob4060cf3d4c60a011065cd7c17f604e877e0b58d8
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="application/javascript">
5 document.designMode = 'on';
7 let div = document.createElement('div');
8 let p = document.createElement('p');
9 document.documentElement.appendChild(div);
10 document.documentElement.appendChild(
11 document.createElement('body'));
12 document.documentElement.appendChild(p);
13 document.execCommand('insertimage', false, 'http://localhost/');
14 document.execCommand('insertparagraph', false, null);
16 document.elementFromPoint(0, 0);
18 let selection = window.getSelection();
19 selection.modify('extend', 'forward', 'character');
21 let range = document.createRange();
22 range.selectNode(p);
23 selection.addRange(range);
24 range.setStart(div, 0);
26 range = document.createRange();
27 range.selectNode(p);
28 selection.addRange(range);
30 document.execCommand('delete', false, null);
31 </script>
32 </head>
33 </html>