blob: 0d3d06391d1840e4127406d194cc7051e3e82ee5 [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<p>This tests InsertParagraphSeparator inside table cells. The first cell should contain 'Cell' and a newline, and the second cell should contain 'Two'.</p>
<div contenteditable="true"><table border="1"><tr><td>Cell <span id="start">One</span></td><td><span id="end">Cell</span> Two</td></tr></table></div>
<script>
var start = document.getElementById("start").firstChild;
var end = document.getElementById("end").firstChild;
var s = window.getSelection();
s.setBaseAndExtent(start, 0, end, end.length);
document.execCommand("InsertParagraph");
</script>