W3C home > Mailing lists > Public > public-html-a11y@w3.org > September 2010

[Bug 10600] New: Strong semantics role="presentation" for <img alt="<empty>"> is wrong or inaccurate

From: <bugzilla@jessica.w3.org>
Date: Fri, 10 Sep 2010 15:05:05 +0000
To: public-html-a11y@w3.org
Message-ID: <bug-10600-3290@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10600

           Summary: Strong semantics role="presentation" for <img
                    alt="<empty>"> is wrong or inaccurate
           Product: HTML WG
           Version: unspecified
          Platform: PC
               URL: http://dev.w3.org/html5/spec/content-models.html#table
                    -aria-strong
        OS/Version: All
            Status: NEW
          Keywords: a11y, aria
          Severity: major
          Priority: P1
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: xn--mlform-iua@xn--mlform-iua.no
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org,
                    laura.lee.carlson@gmail.com, public-html@w3.org,
                    faulkner.steve@gmail.com,
                    xn--mlform-iua@xn--mlform-iua.no,
                    public-html-a11y@w3.org
            Blocks: 10066


Spec says:

]] img element whose alt attribute's value is empty  =  presentation role [[

This means that it would be illegal to do the following

<img role="img" alt="" aria-labelledby="label" src="*">
<p id="label">Lorem ipsum</p>

That particular issue could be fixed by adding more conditions for when the
strong semantics applies. E.g. setting the condition to something like this:

]] img element whose alt attribute's value is empty and which doesn't have an
non-empty @aria-labelledby or @aria-describedby or @longdesc  =  presentation
role [[

However, it could be argued that strong semantics still is wrong: The author
might want to make sure that an empty <img> is announced to the user, by
setting its role to role="img", even if the alt="" is empty.

Therefore, in addition specifying the conditions for when @alt=<empty> implies
role="presentation", I also suggest that "img element whose alt attribute's is
empty" is moved from the strong table to the weak/default semantics table.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 10 September 2010 15:05:07 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:14 UTC