blob: 09fa00eb4d33a78e2664cab4be72dbf1d677a9cc [file] [log] [blame]
<div id="div" contenteditable="true">xx</div>
<script>
text = document.getElementById("div").firstChild;
window.getSelection().setPosition(text, 1);
document.execCommand("InsertHTML", false, " <div>foo</div> ");
</script>