Re: SVG labelling issue with ARIA

aria-labelledby MUST override title in terms of the name calculation. This is no different than the title attribute in HTML. 

If authors apply the aria label they must want to have it as the name. 

Rich

Rich Schwerdtfeger




> On Apr 21, 2016, at 5:14 PM, James Nurthen <james.nurthen@oracle.com> wrote:
> 
> But won't the redundant aria-labelledby override the native labelling mechanism so when browsers implement the multi-lingual title switch it will require removing that aria-labelledby? Or does SVG work differently so the native mechanism takes precedence over the aria-labelledby?
> 
> On 4/21/2016 2:45 PM, Amelia Bellamy-Royds wrote:
>> I really don't see this as an issue for SVG specifically.  As Jason says, SVG (and the SVG Accessibility API Mapping spec) should solve this problem.
>> 
>> Ideally, you would not be using aria-labelledby in this case, you would be using the native labelling mechanism as defined in SVG and SVG-AAM.  Adding aria-labelledby pointing to a <title> is currently an unfortunate hack required to deal with browsers who do not support <title> natively.
>> 
>> Yes, it's unfortunate that this fallback hack can't "polyfill" the new SVG multilingual title-switch functionality, but the multilingual title switch was designed to have a simple SVG 1.1 fallback anyway: use the first <title> element.  So if you are going to add the redundant aria-labelledby attribute for fallback support, it should point to the first <title>.  That way, screen readers get the same text as visual users with tooltips on a browser that doesn't support the new feature (currently all of them).
>> 
>> Hopefully, browsers will implement both the multi-lingual title/desc behavior and proper SVG accessibility mappings together in the near future, and this ceases to be an issue.
>> 
>> Now, a secondary question is whether ARIA should implement its own general mechanism to provide multiple translations of alternative text.  But that would need to use a different mechanism than just a list of values in aria-labelledby, which already has a valid meaning.
> 
> -- 
> Regards, James
> <oracle_sig_logo.gif> <http://www.oracle.com/>
> James Nurthen | Principal Engineer, Accessibility
> Phone: +1 650 506 6781 <tel:+1%20650%20506%206781> | Mobile: +1 415 987 1918 <tel:+1%20415%20987%201918> | Video:  <sip:james.nurthen@oracle.com>james.nurthen@oracle.com <mailto:james.nurthen@oracle.com> 
> Oracle Corporate Architecture
> 500 Oracle Parkway | Redwood Cty, CA 94065 
> <green-for-email-sig_0.gif> <http://www.oracle.com/commitment> Oracle is committed to developing practices and products that help protect the environment
> 

Received on Friday, 22 April 2016 18:52:47 UTC