| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 if (window.testRunner) | 2 if (window.testRunner) |
| 3 testRunner.dumpEditingCallbacks(); | 3 testRunner.dumpEditingCallbacks(); |
| 4 </script> | 4 </script> |
| 5 <p>This tests InsertParagraphSeparator inside table cells. 'Cell' and 'Two' sho
uld be on separate lines.</p> | 5 <p>This tests InsertParagraphSeparator inside table cells. 'Cell' and 'Two' sho
uld be on separate lines.</p> |
| 6 | 6 |
| 7 <div contenteditable="true"><table border="1"><tr><td>Cell One</td><td>Cell <spa
n id="test">Two</span></td></tr></table></div> | 7 <div contenteditable="true"><table border="1"><tr><td>Cell One</td><td>Cell <spa
n id="test">Two</span></td></tr></table></div> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 var e = document.getElementById("test").firstChild; | 10 var e = document.getElementById("test").firstChild; |
| 11 var s = window.getSelection(); | 11 var s = window.getSelection(); |
| 12 document.querySelector("div").focus(); |
| 12 | 13 |
| 13 s.collapse(e, 0); | 14 s.collapse(e, 0); |
| 14 document.execCommand("InsertParagraph"); | 15 document.execCommand("InsertParagraph"); |
| 15 </script> | 16 </script> |
| OLD | NEW |