OAA HEADING_6: Headings must have text content.
Rulesets
- WCAG 2.0 Requirement 2.4.6 Headings and Labels
- Status: Accepted
- Severity: Violation
- Priority: Priority 1
- IITAA 1.0 1.4 Use headings to introduce sections and sub-sections, and use them in the correct order.
- Type:
- Severity: Violation
- Priority: Priority 1
- Status: Accepted
Markup References
Validation Code
Message
Each heading element (h1..h6) must have text content.
Dependencies
None
Context
h1 | h2 | h3 | h4 | h5 | h6
Parameters
None
Code
function (ruleContext) {
var passed = util.getNodeTextRecursively(ruleContext).length > 0;
return new ValidationResult(passed, [ruleContext], [], '', []);
}
>
var passed = util.getNodeTextRecursively(ruleContext).length > 0;
return new ValidationResult(passed, [ruleContext], [], '', []);
}
>