RE: ARIA semantics for secondary navigation

Many thanks for the quick answer. 

Suppose we have the following:

Date/Time: [ ] [ ]

Where [ ] means an INPUT type=text and "Date/Time:" is a label element.

Should the second [ ] been labeled with 

1) aria-label = "Time" OR @title = "Time" 
2) aria-label = "Time" AND @title = "Time"
3) neither aria-label nor @title because semantics are clear from label
4) How should be the first [ ] labeled? 
	a) Using @for like in HTML4 and associate Label element
	b) Using similar approach of 1) - 3) replacing "Time" with
"Date"
	c) Put a <div> container around [ ] [ ] and 
		a. label div with "Date/Time:" using aria-labelledby
		b. label the [ ] individually as described above

Best Regards
Stefan


-----Original Message-----
From: James Craig [mailto:jcraig@apple.com] 
Sent: Mittwoch, 20. Mai 2009 09:41
To: Schnabel, Stefan
Cc: Victor Tsaran; Ryan Doherty; wai-xtech@w3.org
Subject: RE: ARIA semantics for secondary navigation

On May 19, 2009, at 11:44 PM, Schnabel, Stefan wrote:

> I want to ask an heretic question:
>
> Who says that a text node referenced by "aria-labelledby" MUST/SHALL/ 
> HAS
> TO be visible?


No one, but there isn't much point in using aria-labelledby if you're  
gonna hide the label. In that case, it'd be easier to use aria-label  
or @title.

 From the spec:
If the label text is visible on screen, authors SHOULD use aria- 
labelledby and SHOULD NOT use aria-label. Use aria-label only if the  
interface is such that it is not possible to have a visible label on  
the screen.

http://www.w3.org/WAI/PF/aria/#aria-label
http://www.w3.org/WAI/PF/aria/#aria-labelledby

Received on Wednesday, 20 May 2009 08:13:18 UTC