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