summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/forwarddelete-in-text-in-span-in-editable-documentElement.html
blob: 26f2f64b81f1e2b02496c6131cc58cf2460c2d5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<script>
addEventListener("load", () => {
  const r = document.documentElement;
  while (r.firstChild) {
    r.firstChild.remove();
  }

  document.documentElement.contentEditable = "true";
  document.documentElement.appendChild(document.createElement("span"));
  document.documentElement.firstChild.appendChild(document.createTextNode("_"));
  document.execCommand("forwarddelete");
});
</script>
<body>