Skip to content

Consider more nuance to severity of aria-allowed-attr #3756

@scottaohara

Description

@scottaohara

The following is an example of a valid aria-allowed-attr flag with a debatable severity:

<button aria-required=false>foo</button>

when using the web extension, axe 4.4.2, the above mark up is classified as a critical failure.

However, in this case because the attribute is set to false, it is exposed as if the attribute was absent.

Now, if this were aria-required=true then some browser/AT combos would output that this is a "required" button. That's silly. I don't know if I'd even classify that as a 'critical' bug, but I think that still falls into the category of what this rule is trying to prevent.

I just wonder if there's a way to continue to separate out instances like the one I provided where the value of the attribute determines if the property/state is even communicated or not. And in the cases of where the attribute is not communicated, I wonder if severity could better align with the lack of user impact?

Metadata

Metadata

Assignees

Labels

fixBug fixesrulesIssue or false result from an axe-core rule

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions