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

Size attribute error on input tag in HTML5

From: Delves Wood Bears <sales@delveswoodbears.co.uk>
Date: Sat, 25 Jun 2011 14:20:39 +0100
Message-ID: <4E05E0A7.3030902@delveswoodbears.co.uk>
To: www-validator@w3.org
Hi,

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:

Line 106, Column 130: Attribute size not allowed on element input at 
this point.
....number" name="quantity" class="quantity" value="1" 
size="2"/>&nbsp;x&nbsp;</td>
Attributes for element input:
Global attributes
accept
alt
autocomplete
autofocus
checked
dirname
disabled
form
formaction
formenctype
formmethod
formnovalidate
formtarget
height
list
max
maxlength
min
multiple
name
pattern
placeholder
readonly
required
size
src
step
type
value
width

As far as I can make out it says "size" is an invalid attribute, but 
then lists "size" in the list of valid attributes!

Regards,
Phil

Delves Wood Bears - teddy bears, soft toys and baby gifts

4 Station Road, Moulton, Spalding, PE12 6QE.
Tel: 01406 370 638
Mob: 07806 652 719
http://www.delveswoodbears.co.uk <http://delveswoodbears.co.uk>

This email and any attachments to it may be confidential and are 
intended solely for the use of the individual to whom it is addressed.
If you are not the intended recipient of this email, you must neither 
take any action based upon its contents, nor copy or show it to anyone.
Please contact the sender if you believe you have received this email in 
error.

Delves Wood Bears is a division of Delves Wood Ltd, which is registered 
in England & Wales: 6743696.
Received on Sunday, 26 June 2011 12:37:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 26 June 2011 12:37:52 GMT