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

[Bug 16125] New: Validation of image(s) that form(s) a link or button

From: <bugzilla@jessica.w3.org>
Date: Sun, 26 Feb 2012 20:29:34 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-16125-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16125

           Summary: Validation of image(s) that form(s) a link or button
           Product: Validator (Nu)
           Version: unspecified
          Platform: PC
               URL: http://dev.w3.org/html5/spec/the-img-element.html#a-li
                    nk-or-button-containing-nothing-but-the-image
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
        AssignedTo: mike+validator@w3.org
        ReportedBy: xn--mlform-iua@xn--mlform-iua.no
         QAContact: www-validator-cvs@w3.org


Spec says:

]] When an a element that creates a hyperlink, or a button element, has
no textual content but contains one or more images, the alt attributes
must contain text that together convey the purpose of the link or
button.[[

Therefore one would expect that the following examples would trigger errors:

  <a href=foo ><img src=bar alt=''" ></a>
  <a href=foo ><object data=bar type="image/gif"></object></a>
  <button type=button ><img src=bar alt="" ></button>
  <button type=button ><object data=bar type="image/gif" ></object></button>

But currently, as the validator considers the above examples as valid. Please
fix.

See message to public-html/public-html-a11y:  
http://lists.w3.org/Archives/Public/public-html/2012Feb/0407

-- 
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, 26 February 2012 20:29:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:33 GMT