OAA MEDIA_7: Synchronized sign language for audio track.
Details
- object, embed, applet and video elements can be used to include audio track on a web page
- If an media element includes an audio track it must have syncrhonized sign language intertpretation of the audio
Rulesets
- WCAG 2.0 Requirement 1.2.6 Sign Language (Prerecorded)
- Status: Proposed
- Severity: Potential Violation
- Priority: Priority 1
- IITAA 1.0 7.1 Provide synchronized captions
- Type:
- Severity: Potential Violation
- Priority: Priority 3
- Status: Proposed
Markup References
Validation Code
Message
If object, embed, applet or video element is used to includes audio track it must have synchronized sign language of the audio content.
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("audio") );
nodes.concat( ruleContext.getElementsByTagName("video") );
// if no object, embed, applet, video or audio elements found then rule is not applicable
var passed = nodes.length == 0
return new ValidationResult(passed, nodes, '', '', []);
} // endfunction
>
var nodes = [];
nodes.concat( ruleContext.getElementsByTagName("object") );
nodes.concat( ruleContext.getElementsByTagName("embed") );
nodes.concat( ruleContext.getElementsByTagName("applet") );
nodes.concat( ruleContext.getElementsByTagName("audio") );
nodes.concat( ruleContext.getElementsByTagName("video") );
// if no object, embed, applet, video or audio elements found then rule is not applicable
var passed = nodes.length == 0
return new ValidationResult(passed, nodes, '', '', []);
} // endfunction
>