<div contenteditable> a</div>
<script>
// For emulating the traditional behavior, collapse Selection to end of the
// text node in this <script>.
const script = document.querySelector("script");
getSelection().collapse(script.lastChild, script.lastChild.length);
const editingHost = document.querySelector("div[contenteditable]");
editingHost.insertBefore(document.createTextNode(""), editingHost.firstChild);
getSelection().collapse(editingHost.firstChild.nextSibling, 2);
document.execCommand("delete");
</script></body>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.