[Webkit-unassigned] [Bug 153650] New: Phone links are not detected in content inserted via JavaScript
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 29 07:20:19 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=153650
Bug ID: 153650
Summary: Phone links are not detected in content inserted via
JavaScript
Classification: Unclassified
Product: WebKit
Version: Safari 9
Hardware: iOS
OS: iOS 9.2
Status: NEW
Severity: Minor
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bugzilla at roguewhaler.net
Created attachment 270210
--> https://bugs.webkit.org/attachment.cgi?id=270210&action=review
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160129/b6aa7f79/attachment.html>
More information about the webkit-unassigned
mailing list