1
0
Fork 0
firefox/testing/web-platform/tests/editing/crashtests/move-first-element-from-editinghost-to-outside-on-input-of-embolden.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

22 lines
546 B
HTML

<!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>