You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While we do not think it's a good idea to allow additional roles / aria-* attributes on the picture element, since it is not supposed to be directly exposed to the a11y-api, there are potential use cases for setting the entire picture, and thus the graphics it represents as hidden. While this should be done with alt="" on the fallback image element, allowing aria-hidden=true on the picture itself should be allowed as this will also allow authors to hide the element.
Action item:
The aria-hidden attribute can be specified on the picture element as the only allowed aria attribute.
Activity
gezlemon commentedon Sep 21, 2021
Thanks, Scott. I've updated the script to allow the
aria-hiddenattribute on thepictureelement.scottaohara commentedon Sep 21, 2021
still getting the invalid attribute flag when i test
gezlemon commentedon Sep 21, 2021
Apologies, I updated the script in GitHub but forgot to upload it for the bookmarklet. Should be okay now.
scottaohara commentedon Sep 23, 2021
confirmed that the update has been implemented. thank you again @gezlemon