Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1579934.html
blob55be305e2fbc6f06b66ceb1f89ab1ee8012ad847
1 <html><script>
2 window["_gaUserPrefs"] = { ioo : function() { return true; } }
3 </script><head>
4 <meta charset="windows-1252"><script>
5 function onLoad() {
6 const form = document.querySelector("form");
7 form.addEventListener("DOMCharacterDataModified", () => {
8 document.documentElement.appendChild(form);
9 });
10 document.execCommand("delete");
13 function onToggle() {
14 // For emulating the traditional behavior, collapse Selection to end of the
15 // text node node in the <button> which is the deepest last child of the
16 // <body>.
17 const button = document.querySelector("button");
18 getSelection().collapse(button.lastChild, button.lastChild.length);
19 document.querySelector("form").reset();
21 </script>
22 </head><body onload="onLoad()">
23 <details ontoggle="onToggle()" open>
24 <dt contenteditable>
25 </dt>
26 </details><aside style="
27 position: fixed;
28 top: 0px;
29 right: 0px;
30 font-family: &quot;Lucida Console&quot;, monospace;
31 background-color: rgb(242, 230, 217);
32 padding: 3px;
33 z-index: 10000;
34 text-align: center;
35 max-width: 120px;
36 opacity: 0;
37 transition: opacity 0.5s linear 0s;">1194 x 73</aside></body><form id="b"><keygen>
38 <button autofocus>
39 </button></form></html>