blob: 8c22832d255ab4ef704dccab6b7660d8f7013c73 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<body>
<p>This test deletes the contents of a sub-list. Then it deletes the empty list item. The list item below it should remain.</p>
<div id="div" contentEditable="true"><ul><ul><li>foo</li></ul><li><br></li></ul></div>
<script>
if (window.internals)
internals.settings.setEditingBehavior('mac');
var div = document.getElementById("div");
var sel = window.getSelection();
sel.setPosition(div, 0);
sel.modify("extend", "forward", "word");
document.execCommand("Delete");
document.execCommand("Delete");
</script>
</body>