WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Duplicate html5 structural elements with aria roles?

for

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

From: Mickey Williamson
Date: Mon, Feb 08 2016 9:06AM
Subject: Duplicate html5 structural elements with aria roles?
No previous message | Next message →

I recently was told by an accessibility professional that if you're using
the HTML5 structural elements like header, footer, main, etc. that you
should NOT also be using the corresponding aria role attribute because aria
will override the native html. Don't know if that was for all of the
structural elements or just specific ones.

So, <header role="banner"> is bad. Just use <header>.

But then I also recently read that it's better to include the role
attribute...because I don't remember why! Because older browsers don't
support the html5 elements?? And I can't find the article where I read it
now.

So, what's best to do? Include the role for structural elements or not
include the role?

Thanks,
Mickey

From: Steve Faulkner
Date: Mon, Feb 08 2016 9:16AM
Subject: Re: Duplicate html5 structural elements with aria roles?
← Previous message | Next message →

Hi Mickey,

suggest reading On HTML belts and ARIA braces
<http://html5doctor.com/on-html-belts-and-aria-braces/>;

--

Regards

SteveF
Current Standards Work @W3C
<http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>;

On 8 February 2016 at 16:06, Mickey Williamson <
= EMAIL ADDRESS REMOVED = > wrote:

> I recently was told by an accessibility professional that if you're using
> the HTML5 structural elements like header, footer, main, etc. that you
> should NOT also be using the corresponding aria role attribute because aria
> will override the native html. Don't know if that was for all of the
> structural elements or just specific ones.
>
> So, <header role="banner"> is bad. Just use <header>.
>
> But then I also recently read that it's better to include the role
> attribute...because I don't remember why! Because older browsers don't
> support the html5 elements?? And I can't find the article where I read it
> now.
>
> So, what's best to do? Include the role for structural elements or not
> include the role?
>
> Thanks,
> Mickey
> > > > >

From: Léonie Watson
Date: Mon, Feb 08 2016 9:57AM
Subject: Re: Duplicate html5 structural elements with aria roles?
← Previous message | Next message →

> From: WebAIM-Forum On Behalf Of Mickey Williamson
> Sent: 08 February 2016 16:07
> So, what's best to do? Include the role for structural elements or not include
> the role?

If your target audience uses only recent browsers and assistive technologies, there is no need to apply the role explicitly. If you're not sure what technologies your target audience uses, or if you know they use IE, older browsers and/or assistive technologies, then applying the role is a good idea.

Léonie.

--
@LeonieWatson tink.uk Carpe diem

From: Mickey Williamson
Date: Tue, Feb 09 2016 8:02AM
Subject: Re: Duplicate html5 structural elements with aria roles?
← Previous message | No next message

Thank you, Steve and Leonie! Good info.

Mickey

On Mon, Feb 8, 2016 at 11:16 AM, Steve Faulkner < = EMAIL ADDRESS REMOVED = >
wrote:

> Hi Mickey,
>
> suggest reading On HTML belts and ARIA braces
> <http://html5doctor.com/on-html-belts-and-aria-braces/>;
>
> --
>
> Regards
>
> SteveF
> Current Standards Work @W3C
> <http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>;
>
> On 8 February 2016 at 16:06, Mickey Williamson <
> = EMAIL ADDRESS REMOVED = > wrote:
>
> > I recently was told by an accessibility professional that if you're using
> > the HTML5 structural elements like header, footer, main, etc. that you
> > should NOT also be using the corresponding aria role attribute because
> aria
> > will override the native html. Don't know if that was for all of the
> > structural elements or just specific ones.
> >
> > So, <header role="banner"> is bad. Just use <header>.
> >
> > But then I also recently read that it's better to include the role
> > attribute...because I don't remember why! Because older browsers don't
> > support the html5 elements?? And I can't find the article where I read
> it
> > now.
> >
> > So, what's best to do? Include the role for structural elements or not
> > include the role?
> >
> > Thanks,
> > Mickey
> > > > > > > > > >
> > > > >



--


Michelle Williamson
Drupal Developer
T 678.580.1690 x205 F 770.360.5776
twitter <http://twitter.com/micnap>; ' linkedin
<http://www2.mediacurrent.com/l/10072/2012-03-23/3qknq>; ' mediacurrent
<http://www2.mediacurrent.com/l/10072/2012-03-23/3qkpd>;

Awarded Best SMB
<https://t.yesware.com/tl/6228584989751eec7f7efd759b5a3987de150a8e/2db8247480f6e405a199c3227c223214/40a213898e1bbb2949c481a66986bb61?ytl=http%3A%2F%2Fwww.mediacurrent.com%2Fblog%2Fdrupal-agency-mediacurrent-awarded-best-overall-smb-salesforce>
by Salesforce.com