WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: 4.1.1 Parsing > nested elements

for

From: Steve Faulkner
Date: Mar 30, 2018 3:05PM


Hi Jon,
Use of role=navigation on <ul> is a conformance error
https://www.w3.org/TR/html-aria/#ul

So if you do check your code it will throw an error, for example
https://validator.w3.org/nu/?doc=https%3A%2F%2Fs.codepen.io%2Fstevef%2Fdebug%2FjzYgdJ



--

Regards

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

On 30 March 2018 at 03:56, Jonathan Avila < <EMAIL REMOVED> > wrote:

> > "elements are nested according to their specifications"
>
> While ARIA isn't specifically called out by this SC and it's not a markup
> language I personally consider that when ARIA roles are applied to elements
> then descendant elements roles either explicit or implied should follow as
> well. For example, if you change an UL to role navigation then the you
> can't have dangling LI elements without a role like presentation or
> something else. In my example role navigation shouldn't be applied to UL
> it should be applied to a div above the UL.
>
> Is this your opinion as well?
>
> Jonathan
>
> Jonathan Avila
> Chief Accessibility Officer
> Level Access
> <EMAIL REMOVED>
> 703.637.8957 office
>
> Visit us online:
> Website | Twitter | Facebook | LinkedIn | Blog
>
> See you at CSUN in March!
>
>