This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Hi, I have a <button><img src=foo>text</button> The validator gives me this error: An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. I think the "text" part there make the meaning of the image in the button clear, and shouldn't need an extra alt tag. Kurt
The validator behavior conforms to the HTML5 spec. If you believe the spec should allow <button><img src=foo>text</button>, please consider filing a bug against the spec itself: http://w3.org/brief/MjA2