blob: 787bcc6052b2c32701659e03ad6d6a2aa1d838e1 [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<p>This tests text insertion before/after an input element.</p>
<div id="div" contenteditable="true"><input type="text"></div>
<script>
var div = document.getElementById("div");
var sel = window.getSelection();
sel.setPosition(div, 0);
document.execCommand("InsertText", false, "Hello");
sel.setPosition(div, div.childNodes.length);
document.execCommand("InsertText", false, "World");
</script>