Skip to content

False positive aria-allowed-attr for aria-expanded on menuitemcheckbox and menuitemradio #3992

@smhigley

Description

@smhigley

Product

axe-core

Product Version

No response

Latest Version

  • I have tested the issue with the latest version of the product

Issue Description

Expectation

aria-expanded is an allowed attribute on both menuitemcheckbox and menuitemradio (ref: https://w3c.github.io/aria/#menuitemcheckbox).

Actual

axe-core currently returns an aria-allowed-attr failure when it is added to either role.

How to Reproduce

Simplest repro: https://jsfiddle.net/fu9ve7gp/show

Additional context

Looks like the issue is here: https://github.com/dequelabs/axe-core/blob/develop/lib/standards/aria-roles.js#L377-L396

#3343 would fix it along with some other aria-expanded support mismatches, but since it's over a year old I wasn't sure if it was still active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixBug fixesrulesIssue or false result from an axe-core rule

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions