blob: 2e6302f87c29bef3f9d0ebc22b15b42f610a5d6a [file] [log] [blame]
<!DOCTYPE html>
<div id="container" contenteditable="true"><table border="1" id="element"><tr><td>fsdf</td><td>fsdf</td></tr><tr><td>gghfg</td><td>fsfg</td></tr></table></div>
<script src="../editing.js"></script>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('Exec insertOrderedList twice in a table removes the previously inserted list item:');
var e = document.getElementById("element");
setSelectionCommand(e, 0, e, 2);
Markup.dump('container', 'Before');
document.execCommand("insertOrderedList");
document.execCommand("insertOrderedList");
Markup.dump('container', 'After');
</script>