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