Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1644903.html
blob175c6afda7c609f6304cdae11222b37501224f3d
1 <script>
2 window.onload = () => {
3 document.execCommand("undo");
5 function onToggle() {
6 // For emulating the traditional behavior, collapse Selection to end of the
7 // text node at end of the <details> (<p> is closed before the <details>).
8 const details = document.querySelector("details");
9 getSelection().collapse(details.lastChild, details.lastChild.length);
10 const link = document.querySelector("link");
11 document.execCommand("delete");
12 document.querySelector("iframe").contentDocument.adoptNode(link);
14 </script>
15 <p contenteditable>
16 <link item="">
17 <details open ontoggle="onToggle()">
18 <iframe></iframe>
19 </details></body>