WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Nav landmarks query


From: glen walker
Date: Apr 28, 2020 8:26AM

> The above specs don't indicate clearly if any other roles can be set.

I suppose it depends how you read the spec. The section in the spec for
roles is labeled "Allowed ARIA role attribute values". If the role isn't
listed, it's not allowed. Personally, I think that's clear.

As far as what actually happens when you go against the spec is potentially

<nav role="button"> is flagged by the html parser as an error,