maranran / eslint-plugin-vue-a11y

Static AST checker for accessibility rules on elements in .vue
MIT License
161 stars 21 forks source link

can't detect track in video elements #8

Open goatandsheep opened 5 years ago

goatandsheep commented 5 years ago

I have a track in my video element and the captions work well, but it is not being detected by the linter

maranran commented 5 years ago

your code ? @goatandsheep

goatandsheep commented 5 years ago
<video
    :ref="id"
    class="video-js vjs-default-skin"
  >
    <track
      :src="track"
    >
</video>

eslint(vue-a11y/media-has-caption): Media elements such as \

maranran commented 5 years ago

The track element must be present for each HTML5 audio element, with kind="captions" set as a property. detail @goatandsheep you should add kind="captions" for track element