W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

[whatwg] Changing punctuation value of input element in telephone state

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 6 Apr 2010 23:08:47 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1004062307240.4065@ps20323.dreamhostps.com>
On Wed, 7 Apr 2010, Mounir Lamouri wrote:
> > 
> > Well the alternative is to not have the user agent change the value at 
> > all, in which case you still have to do server-side canonicalisation, 
> > so I don't think it really makes any difference.
> 
> If the UA is not changing the value, we are sure at least webpage 
> authors can easily specify how they want the telephone number to be 
> formatted and check it with pattern attribute (or use 
> setCustomValidity()).

If the author is doing the formatting, it's really not much better than a 
type=text field. The reason to have type=tel is to allow the UA to do that 
part of the work.


> I've opened bug 9439 about this issue.

Right-o.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 6 April 2010 16:08:47 UTC

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