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

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 UTC