OAA HEADING_8: Heading content should be concise.

Rulesets

WCAG 2.0 Requirement 2.4.6 Headings and Labels
Status: Accepted
Severity: Recommendation
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: Recommendation
Priority: Priority 1
Status: Accepted

Markup References

Validation Code

Message

Heading content should be concise (usually 65 or fewer characters in length).

Dependencies

None

Context

h2 | h3 | h4 | h5 | h6

Parameters

  • max_heading_text_length : { type: Integer , value: 60 }

Code

function (ruleContext) {
  var passed = util.getNodeTextRecursively(ruleContext).length < this.validateParams.max_heading_text_length.value;
  return new ValidationResult(passed, [ruleContext], [], '', []);
}  // endfunction