-
Notifications
You must be signed in to change notification settings - Fork 766
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
Change these allowed attributes to required as per ARIA 1.1 spec #969
Comments
@dylanb would you say this is a breaking change, or can we do this is a minor? |
Using semver's |
@dylanb The problem is that this is a change we can't undo with That's the reason we introduced the A change like this - a change to a commons, essentially undoes this and makes the One way we could go about solving this would be to move more work to check options. If we start including check options into custom rules - we can change options in minor releases, and just have custom rules override those. It seems like that could be done without breaking the reliability of |
As discussed, here are the AT test results aria-checked on role checkbox Link to test page: https://codepen.io/iamrafan/pen/XPbRag?editors=1000
|
@WilcoFiers The assumption should be that custom rules work for all patch releases of a version. The reason for this is that we have decided in the past that new rules can show up in a minor release. This means that custom rule sets that do not disable that rule, will end up with that rule. Major releases are reserved for breaking API changes or significant additions of functionality. |
@dylanb that's what |
@iamrafan Following up on this... going from your testing, it sounds like leaving off aria-checked for checkbox works just fine. It's a good bet that it'll work for the others too. That makes me hesitant to require it. It both works, and there's a very reasonable use case for it: const elmHtml = `<div ... ${checked ? 'aria-checked="true"' : ''}` Given that this works, despite what ARIA says, I would say that flagging this as an error is a false positive. So I don't think we should change this. I think we should do some AT testing for |
@WilcoFiers Sure, here are the test results for Link to test page: https://codepen.io/iamrafan/pen/EejvjY?editors=1000
|
AT test results for Link to test page: https://codepen.io/iamrafan/pen/WgvEQy?editors=1000
Looks like |
AT tests for Link to test page: https://codepen.io/iamrafan/pen/EejvKx?editors=1000
|
@WilcoFiers Looking at the AT tests, do you agree with my conclusion that
I think there is no need to make any changes for
|
Can we make some test pages that allow us to validate/test when these change? @iamrafan what pages do you use to test these and can you contribute those to this repo? |
@dylanb I create basic samples using only the minimum required ARIA to test the particular scenario. I have added links to test pages in the comments above. I am happy to contribute the test pages to the repo as well, please provide me a placeholder where I can add these tests |
The attributes mentioned in the table below are required by ARIA, but allowed by Axe, because they have a default value. But looking at the description of the default values seems that the default value would not be applicable on the respective roles mentioned and hence they are required to be explicitly defined.
The text was updated successfully, but these errors were encountered: