role

open var role: String?(source)

The role property of the Element interface returns the explicitly set WAI-ARIA role for the element.

MDN Reference