| <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> |