IITAA Rule 80: Labels must have text content.
Rule Mapping
- Status: Accepted
- Severity: Violation
- Priority: Priority 1
Markup References
Validation Code
Dependencies
None
Context
label
Parameters
None
Code
function (ruleContext) {
var passed = xbrowser.getTextContent(ruleContext).normalizeSpacing().length != 0;
return new ValidationResult(passed, [ruleContext], [], '', []);
} //end function
>
var passed = xbrowser.getTextContent(ruleContext).normalizeSpacing().length != 0;
return new ValidationResult(passed, [ruleContext], [], '', []);
} //end function
>