blob: feaa8e47b66fca144631dc0a7f8182773ea27ca7 [file] [log] [blame]
<p>This tests for a crasher when deleting contents of a table cell.</p>
<div id="div" contenteditable="true"><table><tr><td>foo <a href="http://www.google.com/">bar</a></td><td>baz</td></tr></table></div>
<script src="../editing.js"></script>
<script>
runEditingTest();
function editingTest() {
var div = document.getElementById("div");
var sel = window.getSelection();
sel.setPosition(div, 0);
moveSelectionForwardByCharacterCommand();
extendSelectionForwardByWordCommand();
extendSelectionForwardByWordCommand();
deleteCommand();
}
</script>