W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] Input type for phone numbers

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 31 Mar 2009 11:21:04 -0400
Message-ID: <49D234E0.9010503@mit.edu>
Antti Koivisto wrote:
> I'd like to propose a new <input> type attribute value for phone 
> numbers  (<input type="phonenumber"> perhaps). The primary benefit would 
> be to enable use of phone number specific input methods (for example a 
> virtual keyboard) and pickers (for example a system address book). A 
> useful minimal implementation could limit the allowed characters to 
> those legal in phone numbers (+ * # and 0-9).

A brief look around shows the following characters also commonly used in 
phone numbers as people actually type them in the US: ' ' (ascii space), 
'.', '-', 'x' (this last in cases like "1-800-123-4567 x235").

This last case in particular is one I would suspect involves a good bit 
of regional variability; I doubt the Latin lowercase 'x' is used 
throughout the world to denote extensions.

Received on Tuesday, 31 March 2009 08:21:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:10 UTC