semantic role: the test target is an inherited, supported, or requiredstate or property of the semantic role of the element on which the test target is specified; or
language feature: the test target is specified on an HTML element and is allowed on that element. Which ARIA states or properties may be used on which element is described in ARIA in HTML.
Expectation 2
No test target is prohibited on the semantic role of the element on which it is specified.
Background
The presence of prohibited ARIA attributes is often the result of a developer using an incorrect role, or a misunderstanding of the attribute. These attributes are ignored by browsers and other assistive technologies. This often means that a state or property which should exist is missing.
Assessing the value of the attribute is out of scope for this rule.
Assumptions
There are no assumptions.
Accessibility Support
Implementation of Presentational Roles Conflict Resolution varies from one browser or assistive technology to another. Depending on this, some elements can have a semantic role of none and their attributes fail this rule with some technologies but users of other technology would not experience any accessibility issue.
The aria-labelproperty is global. It is allowed on any semantic role, except where specifically prohibited, including roles from the WAI-ARIA Graphics Module. This rule is applicable to SVG elements.
This button element has an explicit role of none. However, because it is focusable (by default), it has a semantic role of button due to Presentational Roles Conflict Resolution. The aria-pressedstate is supported for the button role.
<buttonrole="none"aria-pressed="false">ACT rules are cool!</button>
Passed Example 11
This input element does not have an explicit role of textbox, but the aria-required property may be used on an input element with a typeattribute value of password.
This div element has an explicit role of separator. The aria-valuemin, aria-valuemax and aria-valuenowproperties are supported for the separator role when the element is focusable.
The aria-sortproperty may not be used on a semanticbutton.
<buttonaria-sort="">Sort by year</button>
Failed Example 2
The aria-orientation property may not be used on audio element, nor can it be used on application (the semantic role for which inherited, supported, or requiredstates or properties are also applicable to audio element).