WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Question about using role with main and application

for

Number of posts in this thread: 3 (In chronological order)

From: Renato Iwashima
Date: Tue, May 15 2018 9:47PM
Subject: Question about using role with main and application
No previous message | Next message →

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!

From: Steve Faulkner
Date: Wed, May 16 2018 2:38AM
Subject: Re: Question about using role with main and application
← Previous message | Next message →

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 ADDRESS 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!
> > > > >

From: Renato Iwashima
Date: Wed, May 16 2018 12:23PM
Subject: Re: Question about using role with main and application
← Previous message | No next message

Thanks Steve!

On Wed, May 16, 2018 at 1:38 AM, Steve Faulkner < = EMAIL ADDRESS 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 ADDRESS 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!
> > > > > > > > > >
> > > > >