W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2012

[Bug 16743] New: button with image and text generates error

From: <bugzilla@jessica.w3.org>
Date: Sun, 15 Apr 2012 16:48:53 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-16743-169@http.www.w3.org/Bugs/Public/>

           Summary: button with image and text generates error
           Product: Validator
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
        AssignedTo: dave.null@w3.org
        ReportedBy: kurt@roeckx.be
         QAContact: www-validator-cvs@w3.org


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.


Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Sunday, 15 April 2012 16:48:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:55 UTC