Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1446451.html
blob56c887dc3b9558921e787a0f15adaae292e517d2
1 <script>
2 function onLoad() {
3 // For emulating the traditional behavior, collapse Selection to end of the
4 // text node in the <dialog> which is the deepest last child of the <body>.
5 const dialog = document.querySelector("dialog");
6 getSelection().collapse(dialog.lastChild, dialog.lastChild.length);
7 document.execCommand("insertImage", false, "o")
9 </script>
10 <body onload="onLoad()">
11 <meter contenteditable>
12 <dialog>
13 </dialog></meter></body>