| <p>This tests deleting when the caret is at the start of a paragraph just after a table. The content in that paragraph should be moved into the last table cell unless that content is another table.</p> |
| <div contenteditable="true"><table border="1"><tr><td>All the content in this editable region </td></tr></table><div id="div">should be in one table cell.</div></div> |
| |
| <script> |
| var sel = window.getSelection(); |
| var div = document.getElementById("div"); |
| sel.setPosition(div, 0); |
| document.execCommand("Delete"); |
| </script> |