role attributes have a valid value
This rule tests conformance of the following accessibility requirements:
This rule checks that each
role attribute has a valid value.
This rule makes the following assumption:
This rule has the following accessibility support concern:
- There exists a known popular browser that treats the value of the
roleattribute as case-sensitive. Inconsistencies between browsers can therefore arise if the
roleattribute has a value containing uppercase letters.
<div role="button" tabindex="0">This is a button</div>
<div role="btn" tabindex="0">This is a button</div>
This element has no
role attribute and is therefore inapplicable:
<button>This is a button</button>
<button role="">This is a button</button>
This document includes material copied from or derived from https://act-rules.github.io/rules/674b10/. Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).