OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 blockquote { | |
6 color: blue; | |
7 border-left: 2px solid blue; | |
8 margin: 0px; | |
9 padding: 0 0 0 20px; | |
10 } | |
11 </style> | |
12 </head> | |
13 <body> | |
14 <div id="div" contenteditable="true">This should not be blockquoted. This should
not be blockquoted.</div> | |
15 <script src="../../resources/dump-as-markup.js"></script> | |
16 <script> | |
17 if (window.internals) | |
18 internals.settings.setEditingBehavior('mac'); | |
19 | |
20 Markup.description("This tests pasting a blockquote into the middle of a paragra
ph."); | |
21 | |
22 var sel = window.getSelection(); | |
23 var div = document.getElementById("div"); | |
24 | |
25 sel.setPosition(div, 0); | |
26 sel.modify("move", "forward", "word"); | |
27 sel.modify("move", "forward", "word"); | |
28 sel.modify("move", "forward", "word"); | |
29 sel.modify("move", "forward", "word"); | |
30 sel.modify("move", "forward", "word"); | |
31 sel.modify("move", "forward", "character"); | |
32 document.execCommand("InsertHTML", false, "<blockquote type='cite'> This sh
ould not be blockquoted.<br>This should be blockquoted.<br>This should not be bl
ockquoted.</blockquote>"); | |
33 | |
34 Markup.dump('div'); | |
35 </script> | |
36 </body> | |
37 </html> | |
OLD | NEW |