WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: "Naming Generic Landmarks" errors reported by Siteimprove extension

for

From: Birkir R. Gunnarsson
Date: Mar 3, 2018 7:09AM


No, you got it exactly right.
The <section> element only maps to a landmark if it has an accessible name.
If you used one without any source of accessible name, it shouldn't be
treated as a landmark and flagged as an accessibility error.
If you provide a source of accessible name (and the title attribute is
a valid one) it is a named landmark, so it should not be reported as a
violation.

I've reported this bug to them, (well, not directly but through a
friend who is a website admin who uses SiteImprove).


The only thing to note here is that even when the title attribute is a
source of accessible name for landmarks its support by user agents may
not be as strong as for the aria-label or aria-labelledby attributes.
I haven't tested this, but it is a matter of user agent support, it's
still a valid code construct.


On 3/3/18, Jonathan Robert Pool < <EMAIL REMOVED> > wrote:
> As part of my a11y R&D, I am developing an application to produce accessible
> résumés (jsonresume-theme-a11y).
>
> To monitor its progress in achieving accessibility, I have compared it
> against some competitors with 6 freely available tools.
>
> The only tool that finds errors in what my application produces is
> Siteimprove. Almost all the errors it finds are violations of Guideline
> 1.3.1. Siteimprove says in each case that I must "Use either the WAI-ARIA
> attribute 'aria-label' or 'aria-labelledby' to name the landmark".
>
> These landmarks are HTML section elements. Each of them has a title
> attribute whose value describes the nature of the section.
>
> The Siteimprove diagnosis seems to say that the title attributes are not
> enough. But WAI-ARIA 1.1 says in its section on the aria-label property,
> "Most host languages provide an attribute that could be used to name the
> element (e.g., the title attribute in HTML), yet this could present a
> browser tooltip. In the cases where a visible label or visible tooltip is
> undesirable, authors MAY set the accessible name of the element using
> aria-label." To me that means a title is sufficient, and no additional label
> is necessary. When I test the page with VoiceOver, it reads each section's
> title right after "Section". Am I misunderstanding something, or is this
> particular diagnosis asking for more than WAI-ARIA requires?
> > > > >


--
Work hard. Have fun. Make history.