- From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
- Date: Fri, 22 Apr 2011 02:52:30 +0200
- To: James Craig <jcraig@apple.com>
- Cc: Steve Faulkner <faulkner.steve@gmail.com>, W3C WAI-XTECH <wai-xtech@w3.org>, Richard Schwerdtfeger <schwer@us.ibm.com>, Michael Cooper <cooper@w3.org>
James Craig, Wed, 20 Apr 2011 21:08:30 -0700: > On Apr 20, 2011, at 6:22 PM, Leif Halvard Silli wrote: >>>> VoiceOver IMO support this interpretation. Just run the following Test >>>> 1 and Test 2 in VoiceOver: >>>> >>>> <p>Test 1: <img src="x.jpg" aria-labelledby="y" > >>>> <img src="y.jpg" id="y" alt="Y, y, y?" > >>>> <p>Test 2: <img src="x.jpg" aria-labelledby="yy" > >>>> <img src="y.jpg" id="yy" aria-label="Therefore!" > >>>> >>>> You will see that for Test 1, then the first image takes is label from >>>> the second image's @alt text. But in Test 2, this does not happen. > > Actually that's just a bug in WebKit. Thanks for finding it. It's in > the tracker now. Do you have a URL for the bug? So in essence, @aria-label should be counted just as @alt (or even text node content)? Where is it specified that @aria-label should be counted in e.g. whenever aria-labelledby points to an element which contains no other textual content than aria-label? This seems to be related to what ARIA says about feature priority - here is an excerpt of some of it: ]] contents: name comes from the text value of the element node. Although this may be allowed in addition to "author" in some roles, this is used in content only if higher priority "author" features are not provided. Note: Priority is defined by the text alternative computation algorithm. [[ Does the following summarize ARIA's priority/preference rules for a role=img element? 1st: <elem id=x role=img aria-labelledby=not-x /> 2nd: <elem id=x role=img aria-labelledby=x aria-label=Text /> 3rd: <elem id=x role=img aria-labelledby=x alt=Text /> 4th: <elem id=x role=img aria-labelledby=x >Text</elem> 5th: <elem id=x role=img aria-labelledby=x title=Text And would the be equally true if aria-labelledby pointed to another element "y" instead of pointing to itself? -- leif halvard silli
Received on Friday, 22 April 2011 00:53:04 UTC