WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: 4.1.2 correct roles


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.


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

> 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.
> -----Original Message-----
> From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of
> konstantin galiakhmetov
> Sent: Wednesday, August 24, 2022 4:23 PM
> Subject: Re: [WebAIM] 4.1.2 correct roles
> hello,
> yes, i think that the heading is not correct role too,but
> it is seems that SC4.1.2 does not require a correct role, it requires that
> role can be programmatically determined at all Or not?
> i jast trie to understand.
> thank in advance!
> > > > >
> > > > >