eslint-plugin-vue-a11y icon indicating copy to clipboard operation
eslint-plugin-vue-a11y copied to clipboard

can't detect track in video elements

Open goatandsheep opened this issue 7 years ago • 3 comments

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

goatandsheep avatar Nov 06 '18 17:11 goatandsheep

your code ? @goatandsheep

maranran avatar Dec 25 '18 08:12 maranran

<video
    :ref="id"
    class="video-js vjs-default-skin"
  >
    <track
      :src="track"
    >
</video>

eslint(vue-a11y/media-has-caption): Media elements such as <audio> and <video> must have a <track> for captions.

goatandsheep avatar Dec 27 '18 01:12 goatandsheep

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

maranran avatar May 20 '19 02:05 maranran