Re: [VE][html5] Email Input Attributes

"Michael[tm] Smith" <[email protected]> Mon, 30 Mar 2015 17:36:46 +0900
Newsgroups gmane.org.w3c.validator
Message-ID <[email protected]>
Christopher Dickinson <[email protected]>, 2015-03-28 10:55 -0400:
> Archived-At: <http://www.w3.org/mid/CALafDytF-KYykj=5LD+ozHCVvixYBxL=ZFnJfQiJkbE6Pf9z4Q@mail.gmail.com>
> 
> I am using an email input field in my webpage; the code looks like:
> 
> <input type="email" id="email" name="email" size="80" maxlength="80" value=""
> required="required" />
> 
> When I run my page through the W3 HTML5 Validator, I get the following two
> errors:
> 
>    - Attribute maxlength is only allowed when the input type is e-mail,
>    password, search, tel, text, or url.
>    - Attribute required is only allowed when the input type is checkbox,
>    date, datetime, datetime-local, e-mail, file, month, number, password,
>    radio, search, tel, text, time, url, or week.
> 
> It's an email input type, but the validator seems to reject it; the
> warnings don't seem to make sense.

Sorry about that. The cause was a change I made very recently that
introduced a regression. But I’ve fixed it now.

  —Mike

-- 
Michael[tm] Smith https://people.w3.org/mike
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJVGQseAAoJEIfRdHe8OkuVltAP/jtYV4yUjsf44CaCTSt9nXAn
wgiZqksLxtWhUrIlVoAM2SxAGaXOrElt8SOKLYGEaZEwuyRNSiIpr9CoiuvU5n3b
r++hVR1l8hxaw5QMAPtbrw5bOspGzJa89WV0b0N2/tXuO7UhsITIWKTsoNxvPB0U
bUCQMw//5v+oa9yxNdz9falwBDiwo6EMB9W4ygQo/fpqzv1KVwD4Wj/V2t4c6ZKR
wRmUBhvZ2o2u/xQy8DgKpFp/bawg/J7LdVb/WaFw7KlyvNJyLDn5PSmYIVBZccRW
46h32UFfqNx1rIPxwxO+z5CTD6ERK0DbtYbsIgBO0D/hMI8Ka1T0UG8oJTsGHQy0
vX7RB+cR05HAf9BaPSTPWff9TWDN3y1AUX2b6QNpprivNZgZERS71a1+e91qhqTB
+U2WE53nIwb+vgIs6Q3bAwf8MuZe0Y1In7cQORJSzjUOoUnjxzMZbb4J9rQZ7LXM
a7pk0hHY3E95r30RRd1yZbzQ+MWKtQs2Y7p4FubJu7s9t6qdt2qEA7gEaSXVJtu9
H1F+0Wawi4C02xeQ3bk+ieCm0iG3rr7UGQwk/pktPzL7n4IdMYbT/kS0u0wyJnhP
dpBUcCTX+wC1RZ/b3npHvqpPeG8kEwkWDpamZ8WnjrA80Pva7mkuLz0RCwtR/7pu
titEMDLbiyCYBfBhlMRt
=Kfiv
-----END PGP SIGNATURE-----