blob: 8f60d42489485ad3e88e67fd721e6dbb1f5c488c [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="container"><table border="1"><tr><td contenteditable="true"><ol><li>a</li><li id="li">|b</li></ol></td></tr></table></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('When deleting the second ordered list items in a table cell, that it is the root editable element, its content is merged with the first list item:');
getSelection().collapse(document.getElementById("li"), 0);
Markup.dump('container', 'Before');
document.execCommand("Delete");
Markup.dump('container', 'After');
</script>
</body>
</html>