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.

-Boris
Received on Tuesday, 31 March 2009 08:21:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:49 GMT