WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: 4.1.2 correct roles

for

From: wolfgang.berndorfer
Date: Aug 24, 2022 10:26AM


I would suppose that the following interpretation of 4.1.2 would make no sense:
“All user interface components need ANY role that can be programmatically determined.”
Here is a fitting sufficient technique for this misinterpretation:
“Mark up each user interface component as a link.”

F59 states that using script to make div or span a user interface control is a failure.
https://www.w3.org/WAI/WCAG21/Techniques/failures/F59
Why is it a failure?
“Assistive technologies rely on knowledge of the role and current state of a component in order to provide that information to the user.”

IMO the spirit of SC 4.1.2 is to apply the FITTING role.