RESOLVED FIXED 135077
_WKActivatedElementInfo.title should fallback to innerText if the link doesn't have title attribute.
https://bugs.webkit.org/show_bug.cgi?id=135077
Summary _WKActivatedElementInfo.title should fallback to innerText if the link doesn'...
Yongjun Zhang
Reported 2014-07-18 16:04:35 PDT
Often, a link might not have title attribute. In that case, we should use the link element's innerText as a fallback.
Attachments
Fallback to link element's innerHTML if its title attribute is empty. (1.66 KB, patch)
2014-07-18 16:12 PDT, Yongjun Zhang
no flags
Yongjun Zhang
Comment 1 2014-07-18 16:06:12 PDT
Yongjun Zhang
Comment 2 2014-07-18 16:12:38 PDT
Created attachment 235155 [details] Fallback to link element's innerHTML if its title attribute is empty.
Yongjun Zhang
Comment 3 2014-07-18 16:13:56 PDT
(In reply to comment #2) > Created an attachment (id=235155) [details] > Fallback to link element's innerHTML if its title attribute is empty. typo, it should be innerText.
mitz
Comment 4 2014-07-18 16:41:16 PDT
Comment on attachment 235155 [details] Fallback to link element's innerHTML if its title attribute is empty. View in context: https://bugs.webkit.org/attachment.cgi?id=235155&action=review > Source/WebKit2/ChangeLog:6 > + When populate InteractionInformationAtPosition's title value, use a link element's innerText if it typo: populate->populating
WebKit Commit Bot
Comment 5 2014-07-18 17:22:19 PDT
Comment on attachment 235155 [details] Fallback to link element's innerHTML if its title attribute is empty. Clearing flags on attachment: 235155 Committed r171253: <http://trac.webkit.org/changeset/171253>
WebKit Commit Bot
Comment 6 2014-07-18 17:22:22 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 7 2014-07-18 18:27:45 PDT
Isn't this kind of business logic something that should be in the client? WebKit's job is to provide all the necessary information, not to lie about what the title is.
mitz
Comment 8 2014-07-18 18:32:13 PDT
(In reply to comment #7) > Isn't this kind of business logic something that should be in the client? WebKit's job is to provide all the necessary information, not to lie about what the title is. WebKit uses the title internally for its built-in Add to Reading List action. I do think we’ll need to review _WKActivatedElementInfo’s properties and their names if we make it a public class.
Note You need to log in before you can comment on or make changes to this bug.