This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The following snippet of an image input does not validate: <input type="image" src="/images/searchbutton.gif" id="searchsubmit" value="Search" alt="Search" class="search-button" /> The error specified is: Line 36, Column 121: Attribute value not allowed on element input at this point. ton.gif" id="searchsubmit" value="Search" alt="Search" class="search-button" /> The "attribute value" highlighted is the tag end character (">"). Other types of inputs validate in the same place. The snippet validates in XHTML, and, AFAIK, contains no illegal or malformed attributes. Probably not relevant, but: OS: Windows 7 Browser: Firefox 5.0
The error message is correct; the "value" attribute is not allowed on the input element when its type is "image": http://dev.w3.org/html5/spec/number-state.html#image-button-state See the "Bookkeeping details" section -- in particular this part: "The element's value attribute must be omitted."
Thanks for clarifying; I was misinterpreting the error message. I think it's a little confusing, as attributes have values. Thus, I parsed it as "Attribute value not allowed on element 'input' at this point." instead of "Attribute 'value' not allowed on element 'input' at this point."