<p>This tests for a bug where style would not be applied to a selection that ended just after an image.</p>
<div id="div" contenteditable="true"><br><div>This text should be bold.<img src="../resources/abe.png"></div></div>

<script>
div = document.getElementById("div");
div.focus();
document.execCommand("SelectAll");
document.execCommand("Bold");
</script>
