summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/move-first-element-from-editinghost-to-outside-on-input-of-embolden.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/editing/crashtests/move-first-element-from-editinghost-to-outside-on-input-of-embolden.html')
-rw-r--r--testing/web-platform/tests/editing/crashtests/move-first-element-from-editinghost-to-outside-on-input-of-embolden.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/editing/crashtests/move-first-element-from-editinghost-to-outside-on-input-of-embolden.html b/testing/web-platform/tests/editing/crashtests/move-first-element-from-editinghost-to-outside-on-input-of-embolden.html
new file mode 100644
index 0000000000..6bb87c2810
--- /dev/null
+++ b/testing/web-platform/tests/editing/crashtests/move-first-element-from-editinghost-to-outside-on-input-of-embolden.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<script>
+addEventListener("load", () => {
+ document.querySelector("ol").addEventListener("input", () => {
+ const inlineEditingHost = document.querySelector("span[contenteditable]");
+ const iter = document.createNodeIterator(inlineEditingHost, NodeFilter.SHOW_ELEMENT);
+ iter.nextNode().before(inlineEditingHost);
+ });
+ document.execCommand("selectAll");
+ document.execCommand("bold");
+});
+</script>
+</head>
+<body>
+<ol>
+<span contenteditable>
+<h6></h6>
+</span></ol></body>
+</html>