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