summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/replace-parent-of-editing-host-on-DOMSubtreeModified.html
blob: 9d431aa860ffa70c41257b4ccf9a9d8d1ab851a2 (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
25
26
27
28
<!doctype html>
<html>
<head>
<script>
document.addEventListener("DOMContentLoaded", () => {
  getSelection().collapse(document.querySelector("content"), 1);
  document.querySelector("div[contenteditable]").addEventListener("DOMSubtreeModified", () => {
    document.querySelector("tr").replaceChild(
      document.querySelector("meter"),
      document.querySelector("th")
    );
  });
  document.execCommand("justifyFull");
});
</script>
</head>
<body>
<table>
<tr>
<th>
<div contenteditable>
<meter>
<content>
<ul></ul>
</div>
</th></tr></table>
</body>
</html>