| OLD | NEW |
| (Empty) |
| 1 <style> | |
| 2 blockquote { | |
| 3 color: blue; | |
| 4 border-left: solid blue; | |
| 5 padding-left: 5px; | |
| 6 margin: 0; | |
| 7 } | |
| 8 blockquote blockquote { | |
| 9 color: green; | |
| 10 border-left-color: green; | |
| 11 } | |
| 12 </style> | |
| 13 <body> | |
| 14 <div> | |
| 15 This tests that placing the cursor at the beginning of a | |
| 16 doubly-quoted paragraph and hitting Return splits the outer blockquote | |
| 17 at the right place, namely just above the inner blockquote, and inserts | |
| 18 an empty line there, rather than outside the outer blockquote. | |
| 19 </div> | |
| 20 <div id="div" contentEditable="true"><blockquote type="cite"><div>Lorem<br>i
psum<blockquote id="test" type="cite">dolor</blockquote></blockquote></div> | |
| 21 <script> | |
| 22 test = document.getElementById("test"); | |
| 23 window.getSelection().setPosition(test, 0); | |
| 24 document.execCommand("InsertNewlineInQuotedContent"); | |
| 25 | |
| 26 if (window.testRunner) { | |
| 27 window.testRunner.dumpAsText(); | |
| 28 div = document.getElementById("div"); | |
| 29 div.innerText = div.innerHTML; | |
| 30 } | |
| 31 </script> | |
| 32 </body> | |
| OLD | NEW |