WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Question about using role with main and application

for

From: Renato Iwashima
Date: May 16, 2018 12:23PM


Thanks Steve!

On Wed, May 16, 2018 at 1:38 AM, Steve Faulkner < <EMAIL REMOVED> >
wrote:

> Hi, multiple role values do not get expressed as having the features of
> both. The facility to add multiple roles allows for a fallback if a role in
> not understood. For example
>
> role="foo main"
>
> as foo is not a known role, main will be used.
> It is for cases where new roles are introduced such as below, switch was
> added in ARIA 1.1 so some AT may not understand it, therefore checkbox is
> included as a fallback.
> role="switch checkbox"
>
> If you have content that requires both main and application roles to be
> expressed, you can do as below.
>
> <main>
> <div role="application">
>
> </div>
> </main>
>
> *Please note *that use of role=application is not recommended for large
> chunks of content and is often not required. This may be helpful:
> https://w3c.github.io/using-aria/#using-application
>
> --
>
> Regards
>
> SteveF
> Current Standards Work @W3C
> <http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>;
>
> On 16 May 2018 at 04:47, Renato Iwashima < <EMAIL REMOVED> > wrote:
>
> > Hi,
> >
> > I have a specific region of my page which requires to go into application
> > mode while also being the main content of the page.
> >
> > Is it OK to give it multiple roles such as role="main application"? I've
> > read
> > that multiple roles may cause some bugs with some screen readers
> > <https://developer.paciellogroup.com/blog/2015/10/notes-on-
> > use-of-multiple-aria-role-attribute-values/>
> > but it was related to abstract roles. Would screen readers have any
> > problems for standard landmarks or is it better to create another wrapper
> > to do it?
> >
> > Thanks!
> > > > > > > > > >
> > > > >