Check videos without a caption track
media/video-captions-missing
- WCAG success criterion
- 1.2.2 (level A)
- Outcome class
- Hint only. An automated check that by design reports review hints only: its findings are marked for manual review, never as confirmed violations.
- Area
- Accessibility, Content & Alternatives
- Default severity
- medium
- axe-core rule
media/video-captions-missing
Why we flag this
Deaf or hard-of-hearing users cannot perceive spoken content.
A <video> outside hidden and aria-hidden content, and not muted without controls, has no <track kind="captions"> or kind="subtitles" child, so spoken content may have no text equivalent; reported as a review hint, because captions can be burned into the picture or offered by the player, and the video may carry no speech or informative sound.
What the rule checks
Scope. Every <video> not under the hidden attribute or aria-hidden="true", except a muted video without controls (no sound anybody can turn on).
Expectation. A video without a <track kind="captions"> or kind="subtitles" child is one REVIEW at the video: captions can be burned in or offered by the player, and the video may carry no speech or informative sound, so never a violation. Descriptions or chapter tracks alone do not count. A video with such a track gets no finding here, whether its file loads or not; that question and third-party embeds are video-caption's (#1182), so no video is reported by both rules.
Source. WCAG 2.2 SC 1.2.2 Captions (Prerecorded) (H95, G87, F8); HTML §4.8.11.11 track; ACT f51b46
Detection: shared; needs dom.
Failing example
The check flags this for review. Corpus case content_video_dynamic, element video#featured. The page may contain further findings for other rules.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Video added after load</title>
<style>
nav a, .skip-link { display: inline-block; min-width: 44px; min-height: 44px; }
</style>
</head>
<body>
<a class="skip-link" href="#main">Skip to main content</a>
<header>
<p>City Library</p>
<nav aria-label="Main"><a href="/" aria-current="page">Home</a> <a href="/catalogue">Catalogue</a> <a href="/visit">Visit</a></nav>
</header>
<main id="main">
<h1>Featured video</h1>
<div id="player-slot"></div>
<script>
document.getElementById('player-slot').innerHTML =
'<video id="featured" controls width="320" height="180" src="/featured.mp4"></video>' +
'<video id="talk" controls width="320" height="180" src="/talk.mp4">' +
'<track kind="subtitles" src="/talk-subtitles" srclang="en" label="English"></video>';
</script>
</main>
<footer><p>City Library, 1 Market Square</p></footer>
</body>
</html>Passing example
The check passes here and reports nothing. Corpus case content_video_captioned. The page may contain further findings for other rules.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Library tour video</title>
<style>
nav a, .skip-link { display: inline-block; min-width: 44px; min-height: 44px; }
</style>
</head>
<body>
<a class="skip-link" href="#main">Skip to main content</a>
<header>
<p>City Library</p>
<nav aria-label="Main"><a href="/" aria-current="page">Home</a> <a href="/catalogue">Catalogue</a> <a href="/visit">Visit</a></nav>
</header>
<main id="main">
<h1>Library tour</h1>
<video id="tour" controls width="320" height="180" src="/tour.mp4">
<track kind="captions" src="/tour.en.vtt" srclang="en" label="English">
</video>
<video id="workshop" controls width="320" height="180" src="/workshop.mp4">
<track kind="subtitles" src="/workshop.de.srt" srclang="de" label="Deutsch">
<track kind="chapters" src="/workshop.chapters.html" srclang="en">
</video>
</main>
<footer><p>City Library, 1 Market Square</p></footer>
</body>
</html>This page is generated from the rule catalogue and the rule contracts; see therule overview for how the outcome classes are derived.