blob: 3df34ac74bb5e8f4bf888fb76f712b45a1e7cc46 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="container"><table border="1"><tr><td><div contenteditable="true"><ol><li id="li"><br></li></ol></div></td></tr></table></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('When deleting the last ordered list item in a table cell, which entire content is a contenteditable area, we must delete the whole ordered list:');
getSelection().collapse(document.getElementById("li"), 0);
Markup.dump('container', 'Before');
document.execCommand("Delete");
Markup.dump('container', 'After');
</script>
</body>
</html>