blob: 22190022a90493cfcddb1fb02d572dfa1e890988 [file] [log] [blame]
<!DOCTYPE html>
<div id="container" contenteditable="true"><table border="1"><tbody id="element"><tr><td>fsdf</td><td>fsdf</td></tr><tr><td>gghfg</td><td>fsfg</td></tr><tbody></table></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('Exec insertOrderedList twice in all the cells of a table removes the previously inserted list items:');
var e = document.getElementById("element");
window.getSelection().selectAllChildren(e);
Markup.dump('container', 'Before');
document.execCommand("insertOrderedList");
document.execCommand("insertOrderedList");
Markup.dump('container', 'After');
</script>