| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <style> | |
| 4 blockquote { | |
| 5 color: blue; | |
| 6 border-left: 2px solid blue; | |
| 7 margin: 0px; | |
| 8 padding-left: 10px; | |
| 9 } | |
| 10 </style> | |
| 11 <script> | |
| 12 function log(msg) | |
| 13 { | |
| 14 document.getElementById('console').appendChild(document.createTe
xtNode(msg + '\n')); | |
| 15 } | |
| 16 | |
| 17 function test() | |
| 18 { | |
| 19 var s = window.getSelection(); | |
| 20 s.setPosition(document.getElementById('qt'), 0); | |
| 21 document.execCommand("InsertNewlineInQuotedContent"); | |
| 22 document.execCommand("InsertText", true, "unquoted"); | |
| 23 s.setPosition(document.getElementById('qt2'), 0); | |
| 24 document.execCommand("InsertNewlineInQuotedContent"); | |
| 25 document.execCommand("InsertText", true, "unquoted"); | |
| 26 } | |
| 27 </script> | |
| 28 </head> | |
| 29 <body onload="test()"> | |
| 30 <p>This tests that inserting a newline at the beginning of quoted conten
t doesn't add an extra quoted line. The test has passed if there are no empty l
ines (quoted or unquoted) in the box below.</p> | |
| 31 <div contenteditable="true"> | |
| 32 <blockquote type="cite"><div id="qt">quote level one</div></blockquo
te> | |
| 33 <blockquote type="cite"><div>quote level one</div><div><blockquote t
ype="cite"><div id="qt2">quote level two</div></blockquote></div></blockquote> | |
| 34 </div> | |
| 35 <pre id="console"></pre> | |
| 36 </body> | |
| 37 </html> | |
| OLD | NEW |