A <video> or <audio> element offers no <track> of captions
What it finds
People who cannot hear the sound of a video or recording need captions. A <track kind="captions"> inside the element provides them.
Reported are <video> and <audio> elements that are not muted and whose content holds no <track> with kind="captions". Elements that spread attributes or whose content includes expressions or components, which may render the track, are left alone.
From the rule's source, video_without_captions.rs.
Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/ts:video-without-captions" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/ts:video-without-captions] reason="..."tx0 explain tx0/ts:video-without-captions shows the same in the terminal. Found a false positive? Report it.