OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <style> | |
4 blockquote[type="cite"] { | |
5 color: blue; | |
6 margin: 0px; | |
7 padding-left: 4px; | |
8 border-left: 2px solid blue; | |
9 } | |
10 </style> | |
11 </head> | |
12 <body> | |
13 <div id="description">This tests to see that if the caret is in an empty quoted
paragraph, that paragraph is in content that preserve newlines, and there's no q
uoted content before that paragraph, then pressing delete removes that paragraph
's quoting and removes the empty line. Below you should see the attribution lin
e, an unquoted paragraph, and then a quoted paragraph with "quoted" in it.</div> | |
14 <div id="edit" contentEditable="true"> | |
15 <div><br></div> | |
16 <div>On Tuesday, Justin wrote:</div> | |
17 <div><br></div> | |
18 <blockquote type="cite" id="blockquote"><div style="white-space: pre;"> | |
19 quoted</div></blockquote> | |
20 </div> | |
21 | |
22 <script> | |
23 if (window.testRunner) | |
24 window.testRunner.dumpAsText(); | |
25 blockquote = document.getElementById("blockquote"); | |
26 window.getSelection().setPosition(blockquote, 0); | |
27 document.execCommand("Delete"); | |
28 document.execCommand("InsertText", false, "not quoted"); | |
29 if (window.testRunner) | |
30 document.body.innerText = document.getElementById("description").innerText +
"\n" + document.getElementById("edit").innerHTML; | |
31 </script> | |
32 | |
33 </body> | |
34 </html> | |
OLD | NEW |