Depending on the range of the selection in a web page, WebKit sometimes doesn't include the URL for the selected text in the RTF representation using NSAttributeString's NSLinkAttributeName. * STEPS TO REPRODUCE 1. Open TextEdit. We'll use this as a simple way of inspecting the NSPasteboard's contents. 2. Open an web page with links: http://www.nytimes.com/2011/03/04/world/africa/04president.html?hp in Safari 3. Right-click on the 'President Obama' link, then hit 'escape' to dismiss the menu. You should have JUST the text 'President Obama' (which is all one link) selected. Copy it and Paste it into TextEdit 4. Notice that your text has the expected style (blueish, underlined), but it does NOT contain the actual link!
<rdar://problem/9084267>
Created attachment 86960 [details] Patch
http://trac.webkit.org/changeset/81974