Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1663725.html
blob7f4ffd62ebb81e68db8f28a0c2f58b098997ab4b
1 <script>
2 window.onload = () => {
3 // For emulating the traditional behavior, collapse Selection to end of the
4 // <body> (at the text node after the <input>).
5 getSelection().collapse(document.body, document.body.childNodes.length);
6 document.execCommand("insertHorizontalRule");
7 getSelection().collapse(
8 document.querySelector("b")
9 );
10 document.execCommand("forwardDelete");
12 function onFocusChangeOfInput() {
13 document.getSelection().setPosition(document.querySelector("pre"));
15 </script>
16 <pre>
17 <time contenteditable>a|</t>
18 <input onfocus="onFocusChangeOfInput()" autofocus onblur="onFocusChangeOfInput()">