Skip to content

Implement ARIA change: no longer supported attributes (aria-expanded) on role listbox #4433

@spectranaut

Description

@spectranaut

Product

axe-core

Feature Description

This change will land in the editors draft soon -- dropping support of aria-expanded on role listbox: w3c/aria#1862

This means the following HTML is no longer valid:

<div role="listbox" aria-label="foo" aria-expanded="true">
</div>

I see that non-global, not supported attributes hit the rule for the HTML: <div id="test" aria-expanded="true"></div>, it seems like the same role should be hit in the scenario above:

  Violation of "aria-allowed-attr" with 1 occurrences!
    Ensures an element's role supports its ARIA attributes. Correct invalid elements at:
     - #test
    For details, see: https://dequeuniversity.com/rules/axe/4.9/aria-allowed-attr

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or enhancementstandardsIssues in the ARIA standards objects (lib/standards)wai-aria

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions