WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: ARIA landmark roles and HTML 5 sectioning elements

for

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

From: Alan Zaitchik
Date: Thu, Jul 23 2020 6:43AM
Subject: ARIA landmark roles and HTML 5 sectioning elements
No previous message | Next message →

With recent releases of JAWS, NVDA, and VoiceOver and recent releases of Chrome, Firefox, and Safari, is there any benefit from doubling up with code like <nav role="navigation"> or <footer role="contentinfo"> or even <form="form" >? Are there (still) some popular screen reader-browser combinations, perhaps on mobile devices, that benefit from having both HTML5 elements and also the ARIA roles? (I mean, of course, just in those cases where you do have equivalence.) Is there a downside to doubling up?
Thanks,
Alan

> On Jul 22, 2020, at 14:01, = EMAIL ADDRESS REMOVED = wrote:
>
> Send WebAIM-Forum mailing list submissions to
> = EMAIL ADDRESS REMOVED =
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://list.webaim.org/mailman/listinfo/webaim-forum
> or, via email, send a message with subject or body 'help' to
> = EMAIL ADDRESS REMOVED =
>
> You can reach the person managing the list at
> = EMAIL ADDRESS REMOVED =
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of WebAIM-Forum digest..."
> Today's Topics:
>
> 1. Don't miss an opportunity to learn all about free resources
> at W3C/WAI (Sharron Rush)
> 2. section 508 for a federal contract for technical support
> (Peter Shikli)
> 3. Re: Carousels again (Mallory)
> 4. Re: Carousels again ( = EMAIL ADDRESS REMOVED = )
> 5. FW: Online Courses on Accessible Web Design - Summertime
> Suggestions? (Morin, Gary (NIH/NCI) [E])
> 6. Re: section 508 for a federal contract for technical support
> (Ryan E. Benson)
> 7. Re: FW: Online Courses on Accessible Web Design - Summertime
> Suggestions? (Colleen Gratzer)
> <mime-attachment>
> <mime-attachment>
> <mime-attachment>
> <mime-attachment>
> <mime-attachment>
> <mime-attachment>
> <mime-attachment>
> > > >

From: Andrews, David B (DEED)
Date: Thu, Jul 23 2020 7:27AM
Subject: Re: ARIA landmark roles and HTML 5 sectioning elements
← Previous message | Next message →

The first rule of ARIA is only use ARIA when you can't do something via HTML.

Dave



From: Patrick H. Lauke
Date: Thu, Jul 23 2020 7:56AM
Subject: Re: ARIA landmark roles and HTML 5 sectioning elements
← Previous message | Next message →

On 23/07/2020 14:27, Andrews, David B (DEED) wrote:
> The first rule of ARIA is only use ARIA when you can't do something via HTML.

Of course, the "rule" is essentially a best practice recommendation. And
this answer bypasses the actual question: is explicitly adding the same
ARIA role that the element has natively anyway a problem or not? It was
done in the past for some user agents that didn't have the correct
native role assignment (for instance, IE11 not recognising <main>
element, so needed an extra helping hand with <main role="main">).

More recently, Safari/VO still has a problem where an <img> with an SVG
source is not exposed as an actual image, which can be remediated with
an arguably redundant role="img".
https://bugs.webkit.org/show_bug.cgi?id=187695

In answer to the original question, I'd say: it's probably more a case
of "it's pointless/redundant to do it nowadays" (depending on which
browsers you're targetting ... if you are still seeing/expecting traffic
from a lot of *really* old browsers, then it may well be necessary).
But it doesn't do any harm per se.

P
--
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke

From: Laura Fathauer
Date: Thu, Jul 23 2020 7:58AM
Subject: Re: ARIA landmark roles and HTML 5 sectioning elements
← Previous message | No next message

What patrick said!

This used to be recommended particularly for IE compatibility, so
you'll probably continue to see this in the wild for some time.

On Thu, Jul 23, 2020 at 9:27 AM Andrews, David B (DEED)
< = EMAIL ADDRESS REMOVED = > wrote:
>
> The first rule of ARIA is only use ARIA when you can't do something via HTML.
>
> Dave
>
>
>
>