16 lines
481 B
HTML
16 lines
481 B
HTML
<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>⇒</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
|