OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html style="background: transparent; text-decoration: none"> | 2 <html style="background: transparent; text-decoration: none"> |
3 <body> | 3 <body> |
4 <p id="description">This tests merging paragraphs inside a document with backgro
und: transparent in html element's inline style declaration. | 4 <p id="description">This tests merging paragraphs inside a document with backgro
und: transparent in html element's inline style declaration. |
5 WebKit should not generate a span with background-color property in such cases.<
/p> | 5 WebKit should not generate a span with background-color property in such cases.<
/p> |
6 <div id="container" contenteditable> | 6 <div id="container" contenteditable> |
7 <p id="destination">hello</p> | 7 <p id="destination">hello</p> |
8 <p id="target">world</p> | 8 <p id="target">world</p> |
9 </div> | 9 </div> |
10 <script src="../../resources/dump-as-markup.js"></script> | 10 <script src="../../resources/dump-as-markup.js"></script> |
11 <script> | 11 <script> |
12 | 12 |
13 Markup.description(document.getElementById('description').textContent); | 13 Markup.description(document.getElementById('description').textContent); |
14 | 14 |
15 document.getElementById('container').focus(); | 15 document.getElementById('container').focus(); |
16 var target = document.getElementById('target'); | 16 var target = document.getElementById('target'); |
17 getSelection().collapse(target, 0); | 17 getSelection().collapse(target, 0); |
18 document.execCommand('Delete', false, null); | 18 document.execCommand('Delete', false, null); |
19 | 19 |
20 Markup.dump(document.getElementById('container')); | 20 Markup.dump(document.getElementById('container')); |
21 | 21 |
22 </script> | 22 </script> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |