Bug 213836 - Safari creates phone links for numbers in format ###-####
Summary: Safari creates phone links for numbers in format ###-####
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 13
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2020-07-01 05:47 PDT by proci.wiki
Modified: 2020-07-01 09:16 PDT (History)
1 user (show)

See Also:

Picture of issue (428.43 KB, image/jpeg)
2020-07-01 05:48 PDT, proci.wiki
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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/>.