Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

role="presentation" not supported on SVG element #3082

Closed
jhensley opened this issue Jul 13, 2021 · 3 comments
Closed

role="presentation" not supported on SVG element #3082

jhensley opened this issue Jul 13, 2021 · 3 comments
Labels
fix Bug fixes pr A pr has been created for the issue

Comments

@jhensley
Copy link

Product: axe-core

Expectation: Allow role="presentation" on <svg> elements

Actual: role="presentation" not seen as a valid role on <svg> elements

Motivation: Based on the WAI specs, any role should be valid on an <svg> element

<svg role="presentation" alt="foo"></svg>
axe-core version: 2.3.0

Edit axe-core react (forked)

@straker
Copy link
Contributor

straker commented Jul 13, 2021

Thanks for the issue. Our code is out-of-date with the latest version of the ARIA in HTML spec. Back when we first took from it SVG was only allowed application, document, and img. The latest spec allows all roles

@jhensley
Copy link
Author

Makes sense, I only discovered it when upgrading to axe-core 4.3.0; guessing some other check (perhaps this: #2989) is picking it up or something.

@Malvoz
Copy link
Contributor

Malvoz commented Oct 19, 2021

I believe this should be closed per #3124.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fixes pr A pr has been created for the issue
Projects
None yet
Development

No branches or pull requests

3 participants