| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <style> | |
| 4 blockquote { | |
| 5 color: blue; | |
| 6 border-left: 2px solid blue; | |
| 7 margin-left: 0px; | |
| 8 padding-left: 10px; | |
| 9 } | |
| 10 </style> | |
| 11 <script> | |
| 12 function runTest() { | |
| 13 div = document.getElementById("edit"); | |
| 14 div.focus(); | |
| 15 document.execCommand("InsertHTML", false, "<blockquote class='Apple-paste-as
-quotation'><span class='Apple-style-span' style='color: black;'><span class='Ap
ple-style-span' style='color: red;'>This text should be red (it should be wrappe
d in a style span).</span></span></blockquote>"); | |
| 16 if (window.testRunner) { | |
| 17 window.testRunner.dumpAsText(); | |
| 18 document.body.innerText = document.getElementById("description").innerTe
xt + "\n" + div.innerHTML; | |
| 19 } | |
| 20 } | |
| 21 </script> | |
| 22 </head> | |
| 23 <body onload="runTest();"> | |
| 24 <div id="description">This tests to make sure that content that is colored by th
e user is pasted with that color during a Paste as Quotation.</div> | |
| 25 <div id="edit" contenteditable="true"></div> | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |