[whatwg] <input type=tel> validation, and a small set of typos

Peter Kasting pkasting at google.com
Mon Jul 20 12:47:58 PDT 2009

Two unrelated comments.
First, it seems a bit odd to me that <input type=email> and <input type=url>
are validated (for typeMismatch problems) but <input type=tel> isn't.  I
know it's prohibitively difficult to perfectly validate telephone number
formats given the variety around the world, but it's also prohibitively
difficult to validate email addresses per the relevant RFC, which is why
HTML5 specs a much simpler algorithm that at least rejects obviously bad

It seems like perhaps <input type=tel> could set typeMismatch if the input
contained no numeric digits at all, or maybe if it contained characters
outside 0-9, +, -, (, ), ' ', ...?  Maybe the level of "validation" provided
by these proposals is so low that it's not worth doing, though.

Second comment: There are 4 instances of a small typo in attribute lists,
where "..., required, size, ..." is rendered as "..., required size, ...".
 See the "bookkeeping details" portions of
sections,,, and

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090720/1b3f09ed/attachment-0002.htm>

More information about the whatwg mailing list