blob: f1d4a4c2cbaae5155aaad97163438a43772d7e38 [file] [log] [blame]
<p>This tests for a bug where deleting from the start of a paragraph after a table would leave the caret in the wrong position.</p>
<div contenteditable="true"><table border="1"><tr><td>The caret should be between these two parenthesis: (</td><td contenteditable="false"></td></tr></table><div id="div">).</div></div>
<script>
var sel = window.getSelection();
var div = document.getElementById("div");
sel.collapse(div, 0);
</script>