Page Title: Go Vitru - Start Manage and Grow Your Business
November 11, 2021 04:24

Role is not allowed

Actions

Severity Action
Manual Check The explict role on the 2 elements can be removed, since they are redundant with the implict role of each element.

Details

Rule ID HTML 3
Definition Some HTML elements are restricted in the role allowed based on the semantics of the element (e.g. li elements can only have list related ARIA roles).
Purpose
  • ARIA role attributes change the exposed meaning (semantics) of HTML elements to assisitve technologies.
  • When a role conflicts with the implicit semantics of an HTML element the accessibility API provides confusing and/or conflicting information to screen readers.
  • Role restrictions make sure roles enhance rather than conflict with the implicit semantcs of an HTML element.
WCAG Success Criteria

4.1.2 Name, Role, Value (Level A, Primary Success Criterion)

Rule Category Widgets/Scripting
Scope Element
Target Resources
Techniques
  • Some HTML elements do not allow any role to override of the implicit role, in this case the role must be removed.
  • Some HTML elements only allow certain roles to override of the implicit role, in this case only the allowed roles can be used to override the implicit role.
  • When the explict role is the same as the implicit role for an HTML element, the explict role should be removed to insure the native semantics of the element are properly represented in accessibility APIs.
Informational Links

Element Results

Element Identifier Result Element Position Message

Column Definitions

Element Identifier
Information about the element associated with the result.
The information typically includes the tag name, accessible name or other information related to the rule requirements.
"Page" means that the result applied to the page. For example, the rule "One main landmark on the page" is a page level rule.
Element Position
The element position is based on the DOM order of elements in the page.
The element position maybe useful in helping to locate a specific element on the page evaluated (e.g smaller numbers are typically toward the beginning of a page and larger numbers typically toward the end of a page).
Element position 1 is the first element.
The highest element position is the last element.
Element position values for most rule/page results will not be consecutive since a rule only applies to a sub set of elements found on a page.