Re: A presentational img?

James Craig, Tue, 10 May 2011 15:55:46 -0700:
> On May 10, 2011, at 2:55 PM, Leif Halvard Silli wrote:
> 
>> Steve and James: is an IMG considered focusable if it is wrapped inside 
>> an anchor element? Because, if it is, then there is nothing wrong - 
>> from *that* angle - in seeing empty alt="" as equal to 
>> role="presentation", as the the focus-ability would override the effect 
>> of the the empty alt="". 
> 
> No, in that case, it's the link that receive focus, not the image, so 
> that rule would not apply.

Thanks! That's also how VoiceOver behaves.

>> Is the focus-ability overriding 
>> the role attribute even without the user explicitly giving it focus? 
>> (That is: would it be read when the AT was parsing/presenting the text?)
> 
> No, that's just a bug.

Sorry, I described VoiceOver's behaviour very incompletely - which in 
turns makes me uncertain about what your answer means. ;-) For the 
record: VoiceOver doesn't read the content of a focusable IMG element 
with role=presentation, regardless of whether it has explicit focus or 
not, - this is a clearly, as you say, "just a bug". 

But is the bug only that the IMG isn't presented even when it has 
explicit focus? Or is it also part of the bug that - when reading the 
following sentence as a sentence - the IMG is ignored:

	<p>I <img src=heart alt=love tabindex=0 role=presentation > you.</p>

?
-- 
Leif H Silli

Received on Tuesday, 10 May 2011 23:31:46 UTC