Deepcrawl is now Lumar. Read more.
DeepcrawlはLumarになりました。 詳細はこちら

Inaccessible ARIA treeitem node name (A11y Best Practices)

Post cover image showing clasped hands - representing website accessibility projects
 

What does this accessibility issue mean?

Every ARIA treeitem node should have an accessible name defined.

The name attribute provides a description of the purpose of the tree item, making it easier for assistive technology users to understand its function.

Issue details
  • WCAG Level BP
  • Severity: Serious
  • Category: Aria (BP)
  • Rule ID: aria-treeitem-name

Lumar can help you find & resolve this website accessibility issue — & many others — on your own site. Speak to our team to get started with the platform.

Get a Lumar demo

 

Example HTML violation: Inaccessible ARIA treeitem node name (A11y Best Practices)

<!DOCTYPE html>
<html lang="en" class="no-js">
  <head></head>
  <body>
    <title>Violating Aria Treeitem Name Rule</title>
    <ul role="tree">
      <li role="treeitem"></li>
    </ul>
  </body>
</html>

The provided HTML violates the aria-treeitem-name accessibility rule, which mandates that each treeitem must have an accessible name. In this case, the violation occurs because the treeitem in the HTML does not have a name.

 

How to fix "Inaccessible ARIA treeitem node name (A11y Best Practices)" issue

<!DOCTYPE html>
<html lang="en" class="no-js">
  <head></head>
  <body>
    <title>Conforming with Aria Treeitem Name Rule</title>
    <ul role="tree">
      <li role="treeitem" id="item1" aria-label="tree item one">Item One</li>
    </ul>
  </body>
</html>

This version solves the issue by adding the aria-label attribute to the treeitem, which provides a name that describes the item in the tree structure.

The id attribute helps to create a unique ID for each item, even though it is not necessarily required for this accessibility rule.

 
Digital Accessibility + SEO + Website Health

Build better online experiences — explore the full Lumar platform