blob: d3ecd8611cc0a3c8df451f45d417e6d8959efbca [file] [log] [blame]
<p>This tests to make sure that InsertParagraph creates content an extra block when pressing return inside an empty editable root. Below, inside the editable root, there should be two empty blocks both with placeholders.</p>
<div id="div" contenteditable="true"></div>
<script>
div = document.getElementById("div");
div.focus();
document.execCommand("InsertParagraph");
if (window.testRunner) {
window.testRunner.dumpAsText();
document.body.innerText = div.innerHTML;
}
</script>