Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 5071074.html
blob6dce79e697226b7d71f95dea9a80cdd3e92993bf
1 <p>This tests for a bug where links that weren't fully selected would be copy/pasted as plain text.</p>
2 <div id="copy">This should be plain text. <a id="anchor" href="http://www.google.com/">This should be a link.</a> This should be plain text.</div>
3 <div id="paste" contenteditable="true"><br></div>
5 <script>
6 var anchor = document.getElementById("anchor");
7 var sel = window.getSelection();
8 var range = document.createRange();
9 range.selectNodeContents(anchor);
11 sel.addRange(range);
12 document.execCommand("Copy");
14 var paste = document.getElementById("paste");
15 paste.focus();
16 document.execCommand("Paste");
17 </script>