blob: a53d886ddde9fc0b3fdbe386774c26b9f04a7e0d [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<p>This tests inserting a paragraph separator before a table. There should be an empty paragraph before the table and the caret should be just before the table.</p>
<div contenteditable="true" id="div"><table border="1"><tr><td>foo</td></tr></table></div>
<script>
var sel = window.getSelection();
var div = document.getElementById("div");
sel.setPosition(div, 0);
document.execCommand("InsertParagraph");
</script>