| <p>This test for a bug copy/pasting underlined text. The color of the underline should be the color of the element that has the text-decoration property.</p> |
| <div id="copy" contenteditable="true"><span style="text-decoration: underline; color: blue;"><span style="color:red;">This should be underlined.</span></span></div> |
| <div id="paste" contenteditable="true"><br></div> |
| |
| <script> |
| var copy = document.getElementById("copy"); |
| copy.focus(); |
| document.execCommand("SelectAll"); |
| document.execCommand("Copy"); |
| var paste = document.getElementById("paste"); |
| paste.focus(); |
| document.execCommand("Paste"); |
| </script> |