OAA MEDIA_2: Prerecorded video with no audio track needs text or audio descriptions of the video content.

Details

  1. object, embed, applet and video elements can be used to include prerecorded video in a web page
  2. If element includes prerecorded video the author needs to verify a text description is available

Rulesets

WCAG 2.0 Requirement 1.2.1 Audio-only and Video-only (Prerecorded)
Status: Proposed
Severity: Potential Violation
Priority: Priority 1
IITAA 1.0 7.2 Provide audio descriptions
Type:
Severity: Potential Violation
Priority: Priority 1
Status: Proposed

Markup References

Validation Code

Message

If object, embed, applet or video element is used to include prerecorded video verify a text or audio description of the video is included or linked to the page.

Dependencies

None

Context

document

Parameters

None

Code

function (ruleContext) {
    var nodes = [];

    nodes.concat( ruleContext.getElementsByTagName("object") );
    nodes.concat( ruleContext.getElementsByTagName("embed") );
    nodes.concat( ruleContext.getElementsByTagName("applet") );
    nodes.concat( ruleContext.getElementsByTagName("video") );
    
    // if no object, embed, applet or video elements found then rule is not applicable    
    var passed = nodes.length == 0
    
  return new ValidationResult(passed, nodes, '', '', []);
} // endfunction