axe-core icon indicating copy to clipboard operation
axe-core copied to clipboard

Add support for `aria-labeledby` (not labeLLedby)

Open WilcoFiers opened this issue 2 years ago • 2 comments

This synonym attribute seems to have full support in the three major browser engines now: https://github.com/w3c/aria/issues/2093

Should do some screen reader testing, but from the sound of if this should no longer fail axe-core's button-name rule:

<span hidden id="search">Search</span>
<button class="search-icon" aria-labeledby="search"></button>

WilcoFiers avatar Dec 20 '23 17:12 WilcoFiers

Or fail with a warning ("Attribute misspelled") instead of an error.

cookiecrook avatar Jan 03 '24 08:01 cookiecrook

Actually looking at the results in Gecko (click show details), Firefox's implementation of the non-standard spelling is very incomplete, so it's possible the ARIA WG decision may not be to document and keep it. Probably best for Axe Core not to change until that decision is made.

cookiecrook avatar Jan 03 '24 21:01 cookiecrook