blob: 370ab74f9f663fe3ee06b822db1449ccfbd2d0e6 [file] [log] [blame]
<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>