gecko-dev/editor/libeditor/crashtests/1446451.html

14 строки
451 B
HTML

<script>
function onLoad() {
// For emulating the traditional behavior, collapse Selection to end of the
// text node in the <dialog> which is the deepest last child of the <body>.
const dialog = document.querySelector("dialog");
getSelection().collapse(dialog.lastChild, dialog.lastChild.length);
document.execCommand("insertImage", false, "o")
}
</script>
<body onload="onLoad()">
<meter contenteditable>
<dialog>
</dialog></meter></body>