summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/forwarddelete-in-list-editing-host-after-selectall-without-focus.html
blob: de10e8b8a9716bfd1b3c34be23cff17aad107f0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script>
addEventListener("load", () => {
  document.querySelector("ol[contenteditable]").blur();
  document.execCommand("selectAll");
  const targetListItem = document.querySelector("li + li");
  targetListItem.addEventListener("DOMSubtreeModified", () => {
    document.execCommand("forwardDelete");
    document.querySelector("script").appendChild(targetListItem);
  });
  targetListItem.setAttribute("scrolling", "auto");
});
</script>
<ol contenteditable>
<li>
<li>a</li>