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/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16743

           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


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

-- 
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.3.1 : Wednesday, 7 January 2015 15:17:49 UTC