W3C home > Mailing lists > Public > www-validator@w3.org > June 2011

Re: Size attribute error on input tag in HTML5

From: Michael[tm] Smith <mike@w3.org>
Date: Mon, 27 Jun 2011 18:28:57 +0900
To: Delves Wood Bears <sales@delveswoodbears.co.uk>
Cc: www-validator@w3.org
Message-ID: <20110627092856.GC68196@sideshowbarker>
Delves Wood Bears <sales@delveswoodbears.co.uk>, 2011-06-25 14:20 +0100:

> Just been validating my HTML5 document
> (http://www.delveswoodbears.co.uk/gund-kids-anders-whimsy-lion-soft-toy.html)
> and have received the following error:
> Attribute size not allowed on element input at this point.
> As far as I can make out it says "size" is an invalid attribute, but then
> lists "size" in the list of valid attributes!

The first part of that error message is correct. The list which follows
that part should be considered "elaboration" or "spec advice". And in this
case, that advice is misleading -- because "size" is in fact not allowed
for a type=number input element.

This is a known issue with the HTML5 facet, and we are planning to fix it.
But it is going to be a while before it gets fixed. For details, see:


In the mean time, just be aware that when checking pages that have input
elements, the "advice" part of the error messages for some cases are going
to be misleading. So, for now, If you want to confirm what the actual
constraints are, you unfortunately need to look at the spec. But there is a
table in the spec that can be a big help:


Michael[tm] Smith
Received on Monday, 27 June 2011 09:29:08 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 November 2015 11:01:37 UTC