WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: 4.1.2 correct roles

for

From: Laura Fathauer
Date: Aug 24, 2022 12:10PM


Note there is a connection to function in the definition of "role":
role: text or number by which software can identify the function of a
component within Web content

From my perspective, if something functions as a "link" and your text says
"listbox," then by 4.1.2 you don't have a programmatically determinable
"role" since the text isn't actually describing the function.

Laura




On Wed, Aug 24, 2022 at 12:26 PM < <EMAIL REMOVED> >
wrote:

> 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.
>
>
>