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

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 

Leif H Silli

Received on Tuesday, 3 May 2011 14:32:50 UTC