blob: f3ce9b8c4f664c2b00e557904c5fc2058556c7f3 [file] [log] [blame]
<p>This tests for a bug where hitting return in an editable root that contains only a place holder would add two paragraph instead of one. Below you should see an empty paragraph followed by one that contains only 'x'.</p>
<div id="div" contenteditable="true"><br></div>
<script>
div = document.getElementById("div");
div.focus();
document.execCommand("InsertParagraph");
document.execCommand("InsertText", false, "x");
if (window.testRunner) {
testRunner.dumpAsText();
document.body.innerText = div.innerHTML;
}
</script>