summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/insertlinebreak-around-comment-node.html
blob: dc2d5e2bd4b43b382034e78dfea317d69fbf5738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
document.addEventListener("DOMContentLoaded", () => {
  const element_0 = document.createElement("s");
  const element_1 = document.createElement("a");
  const element_2 = document.createElement("l");
  element_2.setAttribute("contenteditable", "true");
  element_1.appendChild(element_2);
  element_0.appendChild(element_1);
  document.documentElement.appendChild(element_0);
  document.designMode = "on";
  document.execCommand("insertLineBreak");
});
</script>
</head>
<body><!-- COMMENT --></body>
</html>