[whatwg] <input type=tel> validation, and a small set of typos
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 18.104.22.168.19, 22.214.171.124.20, 126.96.36.199.21, and 188.8.131.52.22.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg