ARIA in HTML - test case for additional role allowances for button and input type=button elements

last updated 15 February 2023

Tests:

Authors MAY use role=gridcell, slider or treeitem on a button element.

Expected result: No errors or warnings would be expected for these test cases, as they meet all the necessary requirements for use of these roles (necessary nesting and required attributes).

Authors MAY use role=gridcell, slider or treeitem on a input type=button element.

Note that while these roles are allowed, web authors will generally have a much easier time building these components using another HTML element as their base (e.g., a button or even a div).

Expected result: No errors or warnings would be expected for these test cases, as they meet all the necessary requirements for use of these roles (necessary nesting and required attributes).