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

a11y: implement media-has-caption rule #4872

Conversation

arthurdenner
Copy link
Contributor

Purpose

This is one of the a11y checks from #820.

eslint-plugin-jsx-a11y

This rule is implemented in eslint-plugin-jsx-a11y. Reference:

eslint-plugin-jsx rule documentation
eslint-plugin-jsx rule implementation
eslint-plugin-jsx rule tests

Notes

audio and video tags with muted={false} are not validated because the compiler doesn't interpret them as static, so get_static_value returns undefined.

Therefore, I've opted for just checking if there is an attribute named muted. The mentioned syntax is valid but it doesn't make much sense to use it though.

@arthurdenner
Copy link
Contributor Author

Overridden by #5075.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants