<script> | |
if (window.testRunner) | |
testRunner.dumpEditingCallbacks(); | |
</script> | |
<p>Only the line break after the image should be selected.</p> | |
<hr> | |
<div contenteditable="true" id="div"><img src="../resources/abe.png"><br>foo</div> | |
<script> | |
if (window.testRunner) | |
window.testRunner.dumpSelectionRect(); | |
var e = document.getElementById("div"); | |
var s = window.getSelection(); | |
// Select the line break | |
s.setBaseAndExtent(e, 1, e, 2); | |
</script> |