NEW153650
Phone links are not detected in content inserted via JavaScript
https://bugs.webkit.org/show_bug.cgi?id=153650
Summary Phone links are not detected in content inserted via JavaScript
Michael Bailey
Reported 2016-01-29 07:20:19 PST
Created attachment 270210 [details] Testcase Phone numbers that are present in the source HTML when a page is loaded are detected and turned into links. However, phone numbers that are inserted into the DOM via JavaScript are not detected or linked. See attached test case for an example. I'm not sure whether this is expected behavior or not, but: 1. Chrome for Android does detect phone numbers that are inserted via JavaScript and allows them to be tapped (although they are not styled as links). 2. Safari for OS X does detect phone number inserted via JavaScript, although the behavior there is different, as the user needs to highlight phone numbers first. 3. The documentation for phone links [1] does not mention anything one way or the other about content inserted via JavaScript. Either the behavior should be changed so that phone numbers inserted via JavaScript are detected, or the documentation should be updated to clarify that they are not detected. [1]: https://developer.apple.com/library/prerelease/ios/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html#//apple_ref/doc/uid/TP40007899-CH6-SW1
Attachments
Testcase (580 bytes, text/html)
2016-01-29 07:20 PST, Michael Bailey
no flags
Note You need to log in before you can comment on or make changes to this bug.