- 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
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: http://lists.w3.org/Archives/Public/www-validator/2011Jun/0070.html 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: http://dev.w3.org/html5/spec/the-input-element.html#input-type-attr-summary -- Michael[tm] Smith http://people.w3.org/mike
Received on Monday, 27 June 2011 09:29:08 UTC