| <script> |
| if (window.layoutTestController) |
| layoutTestController.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> |
| 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> |