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 | |
11 blockquote #dq { | |
12 color: green; | |
13 border-color: green; | |
14 } | |
15 | |
16 | |
17 </style> | |
18 <script> | |
19 function test() | |
20 { | |
21 window.getSelection().setBaseAndExtent(document.getElementById('
line'), 0, document.getElementById('dq'), 0); | |
22 document.execCommand("Delete"); | |
23 document.execCommand("InsertNewlineInQuotedContent"); | |
24 document.execCommand("InsertText", true, "black"); | |
25 } | |
26 </script> | |
27 </head> | |
28 <body onload="test()">This tests that the blockquote's typing style doesn't
remain after breaking the blockquote and typing in the unquoted area.<br><br> | |
29 <div contenteditable> | |
30 <blockquote type="cite">blue | |
31 <div id="line"><br></div> | |
32 <div> | |
33 <blockquote type="cite" id="dq">green</blockquote> | |
34 </div> | |
35 </blockquote> | |
36 </div> | |
37 </body> | |
38 </html> | |
39 | |
OLD | NEW |