aria-required examples

input type='checkbox' with role="" - Pass

input type='checkbox' with role=" " - Fail

input type='checkbox' with role="checkbox" - Pass

input type='checkbox' with role="menuitemcheckbox" - Pass

input type='checkbox' with role="menuitemcheckbox" without aria-checked - Fail

input type='checkbox' with role="menuitemcheckbox" with aria-checked - Pass

input type='radio' with role="menuitemradio" without aria-checked - Fail

input type='radio' with role="menuitemradio" with aria-checked - Pass

input type='checkbox' with role="cat" - Fail

input type='checkbox' with role="inpu" - Fail

input type='checkbox' with role="input checkbox" - Pass

Element with role="option" without aria-checked - Fail

Option without aria-checked
  • List item with role option
  • Span with role option

    Element with role="option" with aria-checked - Pass

    Option with aria-checked true
    Option with aria-checked false

    Element with aria-rowindextext on invalid element - Fail

    Invalid element with aria-rowindextext
    Span with aria-rowindextext

    Paragraph with aria-rowindextext

    TR element with aria-rowindextext - Pass

    Cell 1

    Element with role="row" and aria-rowindextext - Pass

    Cell 1

    Element with aria-colindextext on invalid element - Fail

    Invalid element with aria-colindextext
    Span with aria-colindextext

    Paragraph with aria-colindextext

    TD element with aria-colindextext - Pass

    Cell 1

    Element with role="cell" and aria-colindextext - Pass

    Cell 1

    Element with aria-haspopup="true" without role="menu" - Fail

    Div with haspopup
    Span with haspopup

    Element with aria-haspopup="true" with role="menu" - Pass