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 </head> | |
12 <body> | |
13 <div id="description">This tests to make sure that content that has the document
default color is pasted as blue | |
14 (or whatever the color for quoted content is) when pasted in the middle of quote
d content.</div> | |
15 <div id="edit" contenteditable="true"><blockquote type="cite"><div>()</div></blo
ckquote></div> | |
16 <script src="../../resources/dump-as-markup.js"></script> | |
17 <script> | |
18 edit = document.getElementById("edit"); | |
19 description = document.getElementById("description"); | |
20 edit.focus(); | |
21 var s = window.getSelection(); | |
22 s.setPosition(edit.firstChild.firstChild.firstChild, 1); | |
23 | |
24 document.execCommand("InsertHTML", false, "<span class='Apple-style-span' style=
'color: black;'>This text should be blue.</span>"); | |
25 | |
26 Markup.description(description.textContent); | |
27 Markup.dump('edit'); | |
28 </script> | |
29 </body> | |
30 </html> | |
OLD | NEW |