Eslint-plugin-jsx-a11y: jsx-a11y/media-has-caption going off for silent video muted property always on

Created on 20 Nov 2017  Â·  5Comments  Â·  Source: jsx-eslint/eslint-plugin-jsx-a11y

In my company we use videos with no possibility of audio so it makes no sense to have a <track> for caption. There is no sound whatsoever and so we even put the muted attribute (without being controlled by a toggle of or off).
Still the media-has-caption error shows up.

Would be a nice feature to disable that for media using the muted attribute (unconditionally) or have the ability to use role='presentation' or type='silent' or something to have that error go away for those particular videos.

screen shot 2017-11-20 at 12 29 42 pm

Feature Request

enhancement help wanted

Most helpful comment

Is there an ETA for this update to get merged upstream to NPM? I'm on the latest 6.0.3 and still getting the same error.

All 5 comments

Great suggestion. We can absolutely check for the mute attr in the rule.

It's probably one if and a return statement. If you put up a PR, we can get it in.

Ok everyone is ok with that spec? Specifically:
If muted is there unconditionally then it is ok to not have the ‘’?

I definitely don't see the point of required captions if it's impossible to have audio.

Is there an ETA for this update to get merged upstream to NPM? I'm on the latest 6.0.3 and still getting the same error.

👆

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theAdhocracy picture theAdhocracy  Â·  5Comments

minhqp picture minhqp  Â·  6Comments

JosephNK picture JosephNK  Â·  4Comments

pixieduhst picture pixieduhst  Â·  3Comments

chemitaxis picture chemitaxis  Â·  6Comments