Skip to content
New issue

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

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

Already on GitHub? # to your account

jsx-a11y/no-interactive-element-to-noninteractive-role for canvas #648

Closed
markwoon opened this issue Nov 17, 2019 · 2 comments · Fixed by #796
Closed

jsx-a11y/no-interactive-element-to-noninteractive-role for canvas #648

markwoon opened this issue Nov 17, 2019 · 2 comments · Fixed by #796

Comments

@markwoon
Copy link
Contributor

This rule currently does not allow canvas elements to be given the img role even though that's the recommendation (e.g. http://pauljadam.com/demos/canvas.html).

Would it be possible to add it as a standard exception the way tr is right now?

@SudharsanSukumar
Copy link

Can we get some traction on this?

@ljharb
Copy link
Member

ljharb commented May 25, 2021

@SudharsanSukumar PRs are welcome

markwoon added a commit to markwoon/eslint-plugin-jsx-a11y that referenced this issue May 26, 2021
jessebeach added a commit that referenced this issue Jun 13, 2021
Support img role for canvas. Fix for #648.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants