<p>This tests for a crash when outdenting an indented paragraph. You should see 'foo' in a single level list item.</p> | |
<div contenteditable="true"><ul><ul><li id="li">foo<br></li></ul></ul></div> | |
<script> | |
if (window.testRunner) | |
window.testRunner.dumpAsText(); | |
var li = document.getElementById("li"); | |
var sel = window.getSelection(); | |
sel.setPosition(li, li.childNodes.length); | |
document.execCommand("Outdent"); | |
</script> |