[whatwg] Input type for phone numbers
antti at apple.com
Tue Mar 31 01:24:33 PDT 2009
On 31.3.2009, at 0:12, Ian Hickson wrote:
> On Mon, 30 Mar 2009, Antti Koivisto wrote:
>> I'd like to propose a new <input> type attribute value for phone
>> (<input type="phonenumber"> perhaps). The primary benefit would be to
>> enable use of phone number specific input methods (for example a
>> keyboard) and pickers (for example a system address book). A useful
>> minimal implementation could limit the allowed characters to those
>> in phone numbers (+ * # and 0-9).
> Would the pattern="" attribute not be enough?
Pattern attribute does not communicate the type. It would not allow
you to bring up phone book based pickers or special input methods so
it does not satisfy the use case. It also pushes the burden of
specifying a right pattern to authors, something they are likely to
get often wrong.
> 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
> implementing different subsets and it'll be a big mess.
While I agree with the general sentiment I think there is some
surprising asymmetry in including email type but leaving this
Different browsers implementing different subsets is probably
unavoidable initially in any case.
> Ian Hickson U+1047E )
> \._.,--....,'``. fL
> http://ln.hixie.ch/ U+263A /, _.. \ _
> \ ;`._ ,.
> Things that are impossible just take longer. `._.-(,_..'--
More information about the whatwg