summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1423767.html
blob: 777cf58036ff9144569f5ed4e13dc5ed6b3d70b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<script>
function onLoad() {
  const label = document.querySelector("label");
  // For emulating the traditional behavior, collapse Selection to end of the
  // <label> which is the last child of the <body>, i.e., at the comment node.
  getSelection().collapse(label, label.childNodes.length);
  label.addEventListener("DOMNodeRemoved", () => {
    document.querySelector("a").innerText = "";
  });
  document.execCommand("indent");
}
</script>
<body onload="onLoad()">
<li contenteditable>
<a>
<label></br>
<!---