RE: Hawaiian Diacritics

As of ARIA 1.2, which is in candidate recommendation phase now, authors are prohibited from using aria-label aria-labelledby, and aria-roledescription
on a generic element, i.e., div or a span that do not have an explicitly declared role.

See definition of generic role:
https://www.w3.org/TR/wai-aria-1.2/#generic

Matt

-----Original Message-----
From: Patrick H. Lauke <redux@splintered.co.uk> 
Sent: Friday, May 6, 2022 5:14 PM
To: w3c-wai-ig@w3.org
Subject: Re: Hawaiian Diacritics

On 06/05/2022 21:32, David Woolley wrote:

> In the example, your tool output is missing a lang attribute.  I think:
> 
> <span aria-label=”Hawaii”>Hawai&#699;i</span>

Worth noting that the aria-label theoretically overrides anything inside the span, so the lang attribute would be pointless. Also worth noting that an aria-label on a generic span is generally (depending on browser/AT combination) not supported, as a generic span is not a an element that has a label/name. 
https://developer.paciellogroup.com/blog/2017/07/short-note-on-aria-label-aria-labelledby-and-aria-describedby/

P--
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke

Received on Saturday, 7 May 2022 17:13:56 UTC