Re: Alternative to @aria-describedAT: <a role=img>

Ah ... another correction + two additional comments:

Leif Halvard Silli, Tue, 10 Apr 2012 00:05:27 +0200:
> However, my point was that if you do <a role=presentation><img></a>, 
> the sighted will perceive the image as both a link and image, while the 
> AT user will not even perceive it: The <a> will not be perceived as 
> link and the <img> will not be perceived as anything. 

So that was wrong: <a role=presentation><img></a> will be perceived by 
the AT user as an image. Else, I was correct.

But to deviate from the correction: The AT user will not perceive any 
difference between <a role=presentation><img></a> and <a 
role=img><img></a>. Hence, why the first thing is permitted while the 
other thing is not, makes little sense.

Regarding focus, then there is an interesting difference between IE and 
the other browsers. Consider this markup + CSS - and note the @tabindex 
on the image:
   <style>a:active + a{background:lime}</style>
<a href=link><img tabindex=0 src=i alt=OMG></a><a href=longdesc>link</a>

Now, if you you make context menu click on the combination of the link 
and the image, then the parallel link will *not* be highlighted. 
Apparently because Internet Explorer thinks that it is the <img> that 
has focus.
-- 
Leif H Silli

Received on Tuesday, 10 April 2012 00:43:53 UTC