ARIA Grid Role Structure
WarGrid renders a semantic ARIA grid using role=grid, rowgroup, row, columnheader, rowheader and gridcell. The DOM hierarchy is valid, so assistive technologies can expose row and column relationships. This structure underpins every other accessibility feature in the area.
Planned. This page shows the specification from issue #203. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A 6-column, 20-row inventory grid with the 'Product' column designated as the row header. A side panel shows the computed ARIA role tree.
Expected behavior
The accessibility tree panel shows grid > rowgroup > row > columnheader/gridcell. Changing rowHeaderField switches the matching cells to role=rowheader. Hiding the visual header still keeps accessible column header names.
Planned API surface
accessibilityPatternrowHeaderFieldgetAccessibilityTree()a11yStructureValidatedAcceptance criteria
- The root element has role=grid when accessibilityPattern is 'grid'. (pending)
- Every row element has role=row and is owned by an element with role=rowgroup or grid. (pending)
- Header cells have role=columnheader, and body cells have role=gridcell or rowheader. (pending)
- No presentational wrapper breaks the owned-element chain; axe rule aria-required-children passes. (pending)
- Cells in the configured rowHeaderField column have role=rowheader. (pending)