gecko-dev/editor/libeditor/crashtests/1645983-2.html

15 строки
455 B
HTML

<!doctype html>
<div contenteditable>abc<span></span><span></span></div>
<script>
// For emulating the traditional behavior, collapse Selection to end of the
// text node after this <script>.
getSelection().collapse(
document.body.lastChild,
document.body.lastChild.length
);
const editingHost = document.querySelector("div[contenteditable]");
getSelection().collapse(editingHost, 3);
document.execCommand("insertText", false, " ");
</script>
</body>