ARIA in HTML - Test Cases (original) (raw)
Tests:
Authors MAY use role=gridcell
, slider
or treeitem
on a button
element.
Expected result: These test cases would pass checks for an allowed role, but other failures would be expected as the elements are not contained or owned by their expected accessibility parents (gridcell or treeitem), or lack other expected properties required by authors (slider).
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: These test cases would pass checks for an allowed role, but other failures would be expected as the elements are not contained or owned by their expected accessibility parents (gridcell or treeitem), or lack other expected properties required by authors (slider).
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).