summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1579934.html
blob: 55be305e2fbc6f06b66ceb1f89ab1ee8012ad847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html><script>
window["_gaUserPrefs"] = { ioo : function() { return true; } }
</script><head>
<meta charset="windows-1252"><script>
function onLoad() {
  const form = document.querySelector("form");
  form.addEventListener("DOMCharacterDataModified", () => {
    document.documentElement.appendChild(form);
  });
  document.execCommand("delete");
}

function onToggle() {
  // For emulating the traditional behavior, collapse Selection to end of the
  // text node node in the <button> which is the deepest last child of the
  // <body>.
  const button = document.querySelector("button");
  getSelection().collapse(button.lastChild, button.lastChild.length);
  document.querySelector("form").reset();
}
</script>
</head><body onload="onLoad()">
<details ontoggle="onToggle()" open>
<dt contenteditable>
</dt>
</details><aside style="
  position: fixed;
  top: 0px;
  right: 0px;
  font-family: &quot;Lucida Console&quot;, monospace;
  background-color: rgb(242, 230, 217);
  padding: 3px;
  z-index: 10000;
  text-align: center;
  max-width: 120px;
  opacity: 0;
  transition: opacity 0.5s linear 0s;">1194 x 73</aside></body><form id="b"><keygen>
<button autofocus>
</button></form></html>