Skip to main content
Version: v6

A Tree item is missing a required parent element of Tree

A Tree item is missing a required parent element of Tree — rule summary
FieldValue
Rule codeTreeItem_ParentRequirement_Missing
WCAG conformance levelA
WCAG success criterion4.1.2 Name, Role, Value
Must be fixed at sourceNo

Description

A treeitem element was found to be missing the required parent Tree element. Without the appropriate tree parent element, assistive technologies such as screen readers cannot correctly interpret the structure of the tree and its contents. View the W3 details on these components here: https://www.w3.org/TR/wai-aria-1.1/#treeitem and https://www.w3.org/TR/wai-aria-1.1/#tree.

How to fix

Ensure that each treeitem element (e.g., [role='treeitem']) is correctly nested within a parent tree element (e.g., [role='tree']). This nesting is crucial for assistive technologies to properly interpret the tree element structure.