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/>

           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
        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

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

See message to public-html/public-html-a11y:  

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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:48 UTC