W3C home > Mailing lists > Public > public-html-a11y@w3.org > May 2011

Re: [Bug 12587] AT shouldn't see img@alt="" and img@role=presentation as 100% synonyms

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Tue, 3 May 2011 16:32:22 +0200
To: Steve Faulkner <faulkner.steve@gmail.com>
Cc: public-html-a11y@w3.org
Message-ID: <20110503163222117594.4222b1bb@xn--mlform-iua.no>
Steve Faulkner, Tue, 3 May 2011 14:33:58 +0100:
> hi leif,
>>However, as sole content inside a link, it should probably be invalid
> to use role=presentation.
> my understanding is that it is invalid in HTML5 

That text doesn't speak about @role=presentation. It only speaks about 
@alt. Thus, per HTML5, this could be valid:

<a href="green.html"><img role=presentation src="green.jpeg" 

That section should be improved by adding that such IMGs are restricted 
from having role=presentation.

The WAI-ARIA weak table makes no restrictions on the role of an IMG 
whose @alt is non-empty. [1] Thus it is fully valid to set an img with 
non-empty alt to role=presentation. I agree with that table on that 
point, even if it perhaps only catches an edge use case. But for IMGs 
that (for AT) act as links or buttons, I see no use case for permitting 

[1] http://dev.w3.org/html5/spec/content-models#table-aria-weak
Leif H Silli
Received on Tuesday, 3 May 2011 14:32:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:55:55 UTC