summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/delete-in-dd-editing-host-after-selectall-without-focus.html
blob: a45f2dad821074ac860579c60b3655eec96fc97b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<script>
addEventListener("DOMContentLoaded", () => {
  document.querySelector("dd[contenteditable]").blur();
  document.querySelector("dd[contenteditable]").addEventListener("DOMNodeRemoved", () => {
    document.querySelector("h6").textContent = "";
  });
  document.execCommand("selectAll");
  document.execCommand("delete");
})
</script>
<h6>
<dd contenteditable>