summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/insertlinebreak-around-comment-node.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/editing/crashtests/insertlinebreak-around-comment-node.html')
-rw-r--r--testing/web-platform/tests/editing/crashtests/insertlinebreak-around-comment-node.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/editing/crashtests/insertlinebreak-around-comment-node.html b/testing/web-platform/tests/editing/crashtests/insertlinebreak-around-comment-node.html
new file mode 100644
index 0000000000..dc2d5e2bd4
--- /dev/null
+++ b/testing/web-platform/tests/editing/crashtests/insertlinebreak-around-comment-node.html
@@ -0,0 +1,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>