blob: e92a0f7e419a0556906c2ba68cc73904e57bf712 [file] [log] [blame]
<p>This tests for a bug where images would act as word boundaries.</p>
<div id="div" contenteditable="true">The<img src="../resources/abe.png">caret should be just after the second word in this sentence.</div>
<script>
if (window.testRunner)
window.testRunner.dumpEditingCallbacks();
if (window.internals)
internals.settings.setEditingBehavior('mac');
var sel = window.getSelection();
var div = document.getElementById("div");
sel.setPosition(div, 0);
sel.modify("move", "forward", "word");
sel.modify("move", "forward", "word");
</script>