1 <p>This tests for a bug where a copied link wouldn't paste as a link. Both editable regions below should contain a link "Hello\nWorld".</p>
2 <div id="copy" contenteditable="true">
3 <a href="http://www.apple.com/">Hello<br>World</a>
6 <div id="paste" contenteditable="true"><br></div>
9 copy = document.getElementById("copy");
11 document.execCommand("SelectAll");
12 document.execCommand("Copy");
14 paste = document.getElementById("paste");
16 document.execCommand("Paste");