W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

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

From: Peter Kasting <pkasting@google.com>
Date: Mon, 20 Jul 2009 12:47:58 -0700
Message-ID: <d62cf1d10907201247l6f785c3cg535498ac11c10d3e@mail.gmail.com>
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
input.

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 4.10.4.1.19, 4.10.4.1.20, 4.10.4.1.21, and 4.10.4.1.22.

PK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090720/1b3f09ed/attachment.htm>
Received on Monday, 20 July 2009 12:47:58 UTC

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