treeitem-name-present
Tree items have an accessible name
Checks that elements with role="treeitem" expose a non-empty accessible name.
Applies to. Applies to elements carrying role="treeitem" (the attribute must name that role alone, not a fallback list) that are included in the accessibility tree. An element with the matching implicit role but no role attribute is out of scope.
Expectation. The element has a non-empty accessible name from aria-label, from an aria-labelledby that resolves to non-empty text, from title, or, role="treeitem" being name-from-content, from its own subtree text, where a descendant's own name (an <img alt>, aria-label or title) counts as that descendant's contribution rather than only its text nodes.
Examples
<div role="treeitem" tabindex="0">Apple</div>
Visible text content names the tree item.
<div role="treeitem" tabindex="0"></div>
No name and no content.