blob: c36668da9cf6f16a558477443707dabe50c83f29 [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.layoutTestController)
window.layoutTestController.dumpEditingCallbacks();
var sel = window.getSelection();
var div = document.getElementById("div");
sel.setPosition(div, 0);
sel.modify("move", "forward", "word");
sel.modify("move", "forward", "word");
</script>