blob: 3e691ff7d66d269899a2c0eaccc68db446b94b78 [file] [log] [blame]
<style>
blockquote {
color: blue;
border-left: 1px solid blue;
padding-left: 2px;
margin: 0px;
}
</style>
<body>
<div>This tests for a bug where hitting return at the end of a paragraph inside a blockquote would create an extraneous empty quoted paragraph. You should see "line one" (quoted), "" (unquoted), and "line two" (quoted) below.</div>
<div id="div" contentEditable="true"><blockquote type="cite"><pre id="pre">line one
line two</pre></blockquote></div>
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
text = document.getElementById("pre").firstChild;
window.getSelection().setPosition(text, 8);
document.execCommand("InsertNewlineInQuotedContent");
if (window.testRunner) {
div = document.getElementById("div");
div.innerText = div.innerHTML;
}
</script>
</body>