Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(allowed-role): area without href can have a button or link role #3275

Merged
merged 2 commits into from
Nov 12, 2021

Conversation

WilcoFiers
Copy link
Contributor

As per a recent update in ARIA in HTML

Closes issue: #3266

@WilcoFiers WilcoFiers requested a review from a team as a code owner November 12, 2021 11:33
@@ -223,12 +223,4 @@ describe('aria.isAriaRoleAllowedOnElement', function() {
var actual = axe.commons.aria.isAriaRoleAllowedOnElement(node, 'link');
assert.isTrue(actual);
});

it('returns false if elements implicit role does not match the role', function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think this test adds any value. It doesn't return false for just this reason, it returns false because none of the things we test for that could make it true are. So I decided to remove it rather than put in some other element.

@WilcoFiers WilcoFiers merged commit bf7e60a into develop Nov 12, 2021
@WilcoFiers WilcoFiers deleted the area-allow-button-link branch November 12, 2021 16:51
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