OAA FORM_5: Inputs element of type=[image] must have an alt or a title attribute.

Rulesets

WCAG 2.0 Requirement 3.3.2 Labels or Instructions
Status: Accepted
Severity: Violation
Priority: Priority 1
IITAA 1.0 10.1 Provide labels or titles for all form fields.
Type:
Severity: Violation
Priority: Priority 1
Status: Accepted

Markup References

Validation Code

Message

Input element of type=[image] must have an alt or a title attribute.

Dependencies

None

Context

input[@type == "image"]

Parameters

None

Code

function (ruleContext) {
  var retStruct = util.parseLabel(ruleContext);
  var passed = (retStruct.label != null);  
  return new ValidationResult(passed, [ruleContext], [], '', []);
}  // endfunction