This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
<input type="image" name="submit" value="submit" src="/images/ui-login.png" class="submit"/> This should be invalid against HTML5 because it contains the value attribute. This works properly. HOWEVER, the follow also fails: <input type="image" name="submit" src="/images/ui-login.png" class="submit"/> the error given is: "Required attributes missing on element input." Error #2 does not conform with http://www.whatwg.org/specs/web-apps/current-work/#image-button-state which states under "bookkeeping details" that: "The element's value attribute must be omitted"
These messages come directly from validator.nu, assigning to upstream for comments.
For input/@type=image (input elements with the value of the type attribute attribute set to "image"), the alt attribute is required. So you need to do: <input type="image" alt="foo bar baz" name="submit" src="/images/ui-login.png" class="submit"/> I realize that the "Required attributes missing on element input." message is not very helpful at all and we have made some backend changes to improve the error-reporting for this case. Please test again here: http://qa-dev.w3.org:8888/