1
0
Fork 0
firefox/testing/web-platform/tests/editing/crashtests/inserthorizontalrule-with-selecting-text-in-document-element.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

18 lines
484 B
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
document.addEventListener("DOMContentLoaded", () => {
const text = document.createTextNode("abc");
document.documentElement.appendChild(text);
const range = new Range();
range.selectNodeContents(text);
document.documentElement.contentEditable = "true";
document.execCommand("insertUnorderedList");
getSelection().addRange(range);
document.execCommand("insertHorizontalRule");
});
</script>
</head>
</html>