blob: ed25b1356fda916e3b4ae9205c34b48d1abb294c [file] [log] [blame]
<p>This tests for a crash indent a selection that starts just before a ToDo.</div>
<div id="div" contenteditable="true"><table contenteditable="false"><tr><td>&#x21D2;</td><td contenteditable="true" style="background-color: #f81;">ToDo content</td></tr></table></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var sel = window.getSelection();
var div = document.getElementById("div");
sel.setPosition(div, 0);
document.execCommand("Indent");
</script>
PASS