KEMBAR78
adds role=radio to img alt=foo allowances by scottaohara · Pull Request #3320 · dequelabs/axe-core · GitHub
Skip to content

Conversation

scottaohara
Copy link
Contributor

A role=radio was meant to be an allowance for an img alt=foo, but it had mistakenly been left out of the spec.
ARIA in HTML is fixing this oversight, w3c/html-aria#381, so this PR is to match this added allowance.

A `role=radio` was meant to be an allowance for an `img alt=foo`, but it had mistakenly been left out of the spec.
ARIA in HTML is fixing this oversight, w3c/html-aria#381, so this PR is to match this added allowance.
@scottaohara scottaohara requested a review from a team as a code owner December 3, 2021 11:46
Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Scott. Would you be up for adding a passing integration test for this?

https://github.com/dequelabs/axe-core/tree/develop/test/integration/rules/aria-allowed-attr

@scottaohara
Copy link
Contributor Author

@WilcoFiers would this be a new type of integration test then? it looks like what's in that folder now is divs with allowed roles and attributes. but this change is for the img element role allowances. maybe i'm missing something here.

@WilcoFiers
Copy link
Contributor

@scottaohara You are right. Apologies. I added the wrong link. This is about what roles are allowed, not what attributes:
https://github.com/dequelabs/axe-core/tree/develop/test/integration/rules/aria-allowed-role

Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you again @scottaohara!

For the books; I reviewed this PR for security.

@WilcoFiers WilcoFiers merged commit accafdf into dequelabs:develop Dec 13, 2021
@scottaohara scottaohara deleted the patch-1 branch December 13, 2021 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants