-
Notifications
You must be signed in to change notification settings - Fork 789
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(checks/unsupportedrole): support unsupported dpub and fallback roles, add role to message #3395
Conversation
Make `internal-link-present-evaluate` work with virtualNode rather than actualNode. Closes issue dequelabs#2466
This reverts commit 9f996bc.
…ractive" Closes issue dequelabs#2934
…dequelabs-develop-2
Dequelabs develop 2
work in progress
work in progress
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pr. Overall it looks good, the only request I have is that we'll want to check the checkContext._data
to ensure that the role is set (since we weren't setting it before).
So for tests that return true, we'll check that the role is set:
assert.deepEqual(checkContext._data, [role]);
and for tests that return false, we'll want to check that it's null
assert.isNull(checkContext._data);
See https://github.com/dequelabs/axe-core/blob/develop/test/checks/aria/deprecatedrole.js for examples of doing this.
Closes issue dequelabs#3282
…o single string to match lib/checks/aria/deprecatedrole-evaluate.js
… array to single string" This reverts commit e7c757f9330b635b1ed16385b3526f2e71786488.
That makes sense. I like axe-core's test philosophy. Does my latest push reflect what you have in mind? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! Looks great.
Approved for security.
Nice. Thanks again for the guidance. |
fix(rules): unsupportedrole check bugs
Closes issue #3282