Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1517028.html
blobcbc3b71c0a63cd9a0b9bc2af9373538848068465
1 <!-- COMMENT -->
2 abc
3 <head>
4 <script>
5 document.addEventListener('DOMContentLoaded', () => {
6 // For emulating the traditional behavior, collapse Selection to end of the
7 // <em> which is the deepest last child of the <body> (at the comment node).
8 getSelection().collapse(
9 document.querySelector("em[contenteditable]"),
10 document.querySelector("em[contenteditable]").childNodes.length
12 document.execCommand("justifyLeft");
13 document.designMode = 'on';
14 document.execCommand("insertParagraph");
15 });
16 </script>
17 </head>
18 <h4>
19 <em contenteditable>
20 <big>
21 <button autofocus formnovalidate formtarget="">
22 </button>
23 <!-- COMMENT --></big></em></h4></body>