OLD | NEW |
| (Empty) |
1 <style> | |
2 blockquote { | |
3 color: blue; | |
4 border-left: 1px solid blue; | |
5 padding-left: 2px; | |
6 margin: 0px; | |
7 } | |
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().setPosition(text, 8); | |
18 document.execCommand("InsertNewlineInQuotedContent"); | |
19 if (window.testRunner) { | |
20 div = document.getElementById("div"); | |
21 div.innerText = div.innerHTML; | |
22 } | |
23 </script> | |
24 </body> | |
OLD | NEW |