OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <div id="container" contenteditable="true"></div> |
| 5 <div id="content"><span style="font-weight: lighter;">hello</span><span
style="font-weight: bolder;">world</span></div> |
| 6 <script src="../../resources/dump-as-markup.js"></script> |
| 7 <script> |
| 8 Markup.description('This tests inserting elements with font-weight s
et to lighter and bolder values'); |
| 9 |
| 10 var content = document.getElementById('content'); |
| 11 Markup.dump(content, 'Content to insert'); |
| 12 |
| 13 document.querySelector('div[contenteditable]').focus(); |
| 14 document.execCommand('InsertHTML', null, content.innerHTML); |
| 15 |
| 16 Markup.dump('container', 'After insertion'); |
| 17 </script> |
| 18 </body> |
| 19 </html> |
OLD | NEW |