blob: afe92eb1754e6585d8f0eeca844c8d4ceb9d4a1b [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.layoutTestController) {
window.layoutTestController.dumpAsText();
document.body.innerText = div.innerHTML;
}
</script>