AVT- HTML5 Video element must contain a track element with kind="captions" in the language of the video

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Summary

The rule detected a <video> element without a proper captioning element. Caption timed text tracks contain transcription or translation of the dialogue, sound effects, relevant musical cues, and other relevant audio information suitable as a media alternative. Using the proper captioning technique allows an understanding for those who need to read or consume the video content. User and situation examples include the Deaf or hard of hearing, a screen reader who listens to a transcript for the silent on-screen actions, and display of captions when the sound is muted on a device.

Steps to reproduce

  1. GitLab->Help->Markdown

What is the expected correct behavior?

The HTML5 <track> elements should be used to specify a “captions” timed text track for a <video> element.

Possible fixes

A <video> element with a <track> element type of “captions”:

For example:

    <video src="...">
       <track src="myvideo.srt" kind="captions" ...>
    </video>
        .....

Relevant screenshots

  • image
  • [GitLab - All features which have markdown videos]

gitlab-ce~2677490

@sharonchen @carmacleod

Edited Jun 25, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading