| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../resources/dump-as-markup.js"></script> | |
| 5 <style> | |
| 6 blockquote { | |
| 7 color: blue; | |
| 8 border-left: 2px solid blue; | |
| 9 margin: 0px; | |
| 10 padding: 0 0 0 20px; | |
| 11 } | |
| 12 </style> | |
| 13 </head> | |
| 14 <body contenteditable> | |
| 15 <div> | |
| 16 <p>This tests pasting a blockquote into a blockquote. Nothing below should be do
uble-blockquoted.</p> | |
| 17 <div> | |
| 18 <blockquote type="cite">one<br>two<br>three<br id="endContent"><br><br><
/blockquote> | |
| 19 </div> | |
| 20 <br> | |
| 21 </div> | |
| 22 <script> | |
| 23 | |
| 24 var sel = window.getSelection(); | |
| 25 var endContent = document.getElementById("endContent"); | |
| 26 sel.setPosition(endContent, 1); | |
| 27 document.execCommand("InsertHTML", false, "<blockquote type='cite'><div>two</div
></blockquote>"); | |
| 28 | |
| 29 Markup.description(document.getElementsByTagName('p')[0].innerText); | |
| 30 Markup.dump(document.getElementsByTagName('div')[1]); | |
| 31 | |
| 32 </script> | |
| 33 </body> | |
| 34 </html> | |
| OLD | NEW |