Re: role="presentation" on an image

Replying all for the benefit of the list.

There used to be a 'label' role in the draft, but it was removed a few years ago. The reason is because the user doesn't need a label role. They just need to hear the label text on the labeled element, no matter the role of the labeling element. For example, sometimes an element is labeled by a heading; sometimes by a simple span. To put it another way, the important semantic of the <label> tag in HTML is not its role, but the relationship provided by the @for and @id attributes.


On Aug 23, 2010, at 7:42 AM, David Bolter wrote:

> Indeed you are correct! I guess I should remove role="label" logic from Firefox...
> 
> Why don't we have role="label"?
> 
> cheers,
> David
> 
> On 23/08/10 10:33 AM, Steven Faulkner wrote:
>> 
>> double scratch that:
>>  
>> >i must be going batty...
>> > there is a label role...
>>  
>> there is no label role, i was right the first time...
>>  
>> regards
>> steve
>> 
>> On 23 August 2010 15:29, Steven Faulkner <faulkner.steve@gmail.com> wrote:
>> scratch that:
>> 
>> there is no ARIA role="label"
>> 
>> i must be going batty...
>>  there is a label role...
>>  
>> regards
>>  
>> steve
>> On 23 August 2010 15:28, Steven Faulkner <faulkner.steve@gmail.com> wrote:
>> hi dave,
>> >role="label"
>>  
>> there is no ARIA role="label"
>> there is an aria-label property.
>>  
>> regards
>> steve
>> 
>> On 23 August 2010 15:23, David Bolter <david.bolter@gmail.com> wrote:
>> Hi Steve,
>> 
>> What about putting role="label" on the image, and adding an aria-labelledby relation?
>> 
>> cheers,
>> D
>> 
>> 
>> On 23/08/10 7:59 AM, Steven Faulkner wrote:
>>> 
>>> Hi all,
>>> If an image has a role=presentation and a non empty alt, shouldn't the alt text be passed to AT?
>>>  
>>> example:
>>>  
>>> <a href="home.html"><img src="home.gif" alt="home page"></a>
>>>  
>>> currently this typically results in a screen reader announcing:
>>>  
>>> "link graphic home page"
>>>  
>>> when the presenece of the role information seems less than useful in context.
>>>  
>>> if role="presentation" allaowed the text "content" of the image object to be passed to AT then
>>>  
>>> <a href="home.html"><img src="home.gif" alt="home page" role="presentation"></a>
>>>  
>>> would result in the follwoing being announced:
>>>  
>>> "link home page"
>>>  
>>> currently this does not work as adding role="presentation" removes the image form the browsers accessible tree. 
>>> 
>>> -- 
>>> with regards
>>> 
>>> Steve Faulkner
>>> Technical Director - TPG Europe
>>> Director - Web Accessibility Tools Consortium
>>>  
>>> www.paciellogroup.com | www.wat-c.org
>>> Web Accessibility Toolbar - http://www.paciellogroup.com/resources/wat-ie-about.html
>> 
>> 
>> 
>> 
>> -- 
>> with regards
>> 
>> Steve Faulkner
>> Technical Director - TPG Europe
>> Director - Web Accessibility Tools Consortium
>>  
>> www.paciellogroup.com | www.wat-c.org
>> Web Accessibility Toolbar - http://www.paciellogroup.com/resources/wat-ie-about.html
>> 
>> 
>> 
>> -- 
>> with regards
>> 
>> Steve Faulkner
>> Technical Director - TPG Europe
>> Director - Web Accessibility Tools Consortium
>>  
>> www.paciellogroup.com | www.wat-c.org
>> Web Accessibility Toolbar - http://www.paciellogroup.com/resources/wat-ie-about.html
>> 
>> 
>> 
>> -- 
>> with regards
>> 
>> Steve Faulkner
>> Technical Director - TPG Europe
>> Director - Web Accessibility Tools Consortium
>>  
>> www.paciellogroup.com | www.wat-c.org
>> Web Accessibility Toolbar - http://www.paciellogroup.com/resources/wat-ie-about.html
> 

Received on Monday, 23 August 2010 18:36:57 UTC