W3C home > Mailing lists > Public > www-validator@w3.org > November 2008

size attribute in input element causes problems

From: Conor Lennon <conorlennon@eircom.net>
Date: Mon, 24 Nov 2008 12:39:16 -0000
To: www-validator@w3.org
Message-ID: <op.uk4irqndpqsu0s@linux-e5mi.site>

This appears to be incorrect to me.

This is line 69 in my HTML:

<li class="todo"><div class="header">Enter score for League  
games:</div><br/><table><tr><td style="font-weight:bold; border-bottom:1px  
dashed green">Cup</td></tr><tr><td><form method="post"  
action="manage_league_games" style="display:inline"><div  
style="display:inline"> - 19/10/2008 - Team2 <input size="2" type="text"  
name="G1AwayScore" value="0" /> - <input size="2" type="text"  
name="G1HomeScore" value="-1" /> Team1 <input type="hidden"  
name="tableRef" value="cup" /><input type="hidden" name="referer"  
value="admin/index" /><input type="hidden" name="weekRef"  
value="Cup_Final" /><input type="hidden" name="year" value="2008" /><input  
type="hidden" name="G1HomeTeam" value="Team1" /><input type="submit"  
name="Submit" value="Enter" /></div></form></td></tr></table><div  
style="font-style:italic; display:inline"><br/><br /><br /><br/></div></li>

Here's what I get.
The size attribute in the input element causes a problem, but size is  
given in the allowed attributes.

Line 69, Column 353: Attribute size not allowed on XHTML element input at  
this point..
…"text" name="G1AwayScore" value="0" /> - <input size="2" type="text"  
name="G1
Element-specific attributes for element input:
accept
action
alt
autocomplete
autofocus
checked
disabled
enctype
form
list
max
maxlength
method
min
name
pattern
readonly
required
size
src
step
target
type
value
Received on Monday, 24 November 2008 13:46:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:33 GMT