summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/remove-editing-host-on-DOMNodeInserted-at-indent.html
blob: 22e8fd07136873352671d25b2b6a647f171c4bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
document.addEventListener("DOMContentLoaded", () => {
  const editingHost = document.querySelector("h6[contenteditable]");
  document.querySelector("wbr").addEventListener(
    "DOMNodeInserted",
    () => editingHost.remove()
  );
  window.find("A");
  document.execCommand("indent");
})
</script>
</head>
<body>
<h6 contenteditable>
<time>
<wbr>
<main></main>
A
</time></h6></body>
</html>