1
0
Fork 0
firefox/testing/web-platform/tests/editing/crashtests/forwarddelete-in-text-in-span-in-editable-documentElement.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

15 lines
421 B
HTML

<!doctype html>
<script>
addEventListener("load", () => {
const r = document.documentElement;
while (r.firstChild) {
r.firstChild.remove();
}
document.documentElement.contentEditable = "true";
document.documentElement.appendChild(document.createElement("span"));
document.documentElement.firstChild.appendChild(document.createTextNode("_"));
document.execCommand("forwarddelete");
});
</script>
<body>