w3c / aria-practices

WAI-ARIA Authoring Practices Guide (APG)
https://www.w3.org/wai/aria/apg/
Other
1.21k stars 336 forks source link

Assistive Technology Support iframe element requires an accessible name #2814

Open giacomo-petri opened 1 year ago

giacomo-petri commented 1 year ago

Example: https://www.w3.org/WAI/ARIA/apg/patterns/alert/examples/alert/#assistivetechnologysupport

According to specifications, iframe elements typically necessitate an accessibility name, with exceptions in cases where the iframe is inert or designated as purely decorative. Consequently, we have to assign an accessible name to these iframe elements.

I'm happy to resolve it with a PR, if it's approved, by adding a title="Assistive Technology Support - $component".

mcking65 commented 1 year ago

@giacomo-petri

If there is such a specification, it should be updated because naming iframes would typically be a problematic practice. I would be hard pressed to think of a case where an iframe should have an accessible name. iframes are not semantic structures. They are a more like a div.