Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / 6104369-2.html
blob08930c577d3f1aa3ed67a8a883308fad48dd2a10
1 <style>
2 blockquote {
3 color: blue;
4 border-left: 1px solid blue;
5 padding-left: 2px;
6 margin: 0px;
8 </style>
9 <body>
10 <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>
11 <div id="div" contentEditable="true"><blockquote type="cite"><pre id="pre">line one
12 line two</pre></blockquote></div>
13 <script>
14 if (window.testRunner)
15 window.testRunner.dumpAsText();
16 text = document.getElementById("pre").firstChild;
17 window.getSelection().collapse(text, 8);
18 document.execCommand("InsertNewlineInQuotedContent");
19 if (window.testRunner) {
20 div = document.getElementById("div");
21 div.innerText = div.innerHTML;
23 </script>
24 </body>