Firefox Tomorrow

web api instance property

ElementInternals: role property

View on MDN ↗

The role property of the ElementInternals interface returns the WAI-ARIA role for the element. For example, a checkbox might have role="checkbox". It reflects the role attribute; it does not return the element’s implicit ARIA role, if any, unless explicitly set.

Value

A string which contains an ARIA role. A full list of ARIA roles can be found on the ARIA techniques page.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.