blob: 12982fe27b13a72d6e173b4a72055bc61b0e4816 [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.collapse(div, 0);
sel.modify("extend", "forward", "word");
document.execCommand("Delete");
document.execCommand("Delete");
</script>
</body>