Duolith docs

Errors while checking a page

E0124 Unknown role

Message role is not a role

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

role= tells assistive technology what an element is, using a fixed list of words that each target maps to its own roles: group, radio-group, radio, status, alert, heading, image, separator, search, grid, row, gridcell, column-header, tab-list, tab, tab-panel, spinbutton, dialog, alert-dialog, menu-item, option, combobox, navigation, banner, toolbar.

How to fix it

Use one of the listed roles, or leave role out where the element already says what it is, as button and input do.

In a terminal

duolith explain E0124

Mentioned in