| <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> |