Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 5601583-1.html
blobd7c975e2d2d0edc5022954684bed3aefebae63ed
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>
4 </div>
6 <div id="paste" contenteditable="true"><br></div>
8 <script>
9 copy = document.getElementById("copy");
10 copy.focus();
11 document.execCommand("SelectAll");
12 document.execCommand("Copy");
14 paste = document.getElementById("paste");
15 paste.focus();
16 document.execCommand("Paste");
17 </script>