Bug 213836

Summary: Safari creates phone links for numbers in format ###-####
Product: WebKit Reporter: proci.wiki
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: ap
Priority: P2    
Version: Safari 13   
Hardware: iPhone / iPad   
OS: Unspecified   
Attachments:
Description Flags
Picture of issue none

Description proci.wiki 2020-07-01 05:47:43 PDT
Writing numbers in the format: `###-####` causes Safari on iOS to treat them as a phone link (tel:). This format is typically also used for year ranges, e.g. 900-1200.

Functionality is described further here: https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html

Phone numbers are usually written with a hyphen ("-", 0x2D). Whereas, year ranges are typically written with en-dash ("–", 0x2013). Automatic phone linking shouldn't occur for the en-dash.
Comment 1 proci.wiki 2020-07-01 05:48:44 PDT
Created attachment 403283 [details]
Picture of issue
Comment 2 Alexey Proskuryakov 2020-07-01 09:16:05 PDT
This functionality is not part of WebKit (other than enabling the ability for another framework to perform the processing). Please report this issue to Apple via <https://developer.apple.com/bug-reporting/>.