[whatwg] Input type for phone numbers

Ian Hickson ian at hixie.ch
Tue Mar 31 00:12:26 PDT 2009


On Mon, 30 Mar 2009, 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).

Would the pattern="" attribute not be enough?

Generally speaking at this point it's probably best for us to wait for the 
currently defined features to be more widely implemented before we add any 
more controls, since otherwise we'll just end up with different browsers 
implementing different subsets and it'll be a big mess.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list