equal-access
equal-access copied to clipboard
Validation of Aria attributes for the elements without an explicit role failed
when an element doesn't have an implicit role, the engine report might contain false positives or negatives. For example, the following elements should cause a violation, but we don't report them:
Per team discussion, the rule "aria_semantics_attribute" should be modified to make the code fix, an additional issue is to open for updating the help content.
- [ ] code change
- [ ] test cases
- [ ] message change
- [x] help content update #1035
investigate the different cases:
- [x] neither implicit nor explicit role, Not global attributes either
- [x] neither implicit nor explicit role, but allow certain specific attributes
- [x] neither implicit nor explicit role, but allow global attributes
- [x] no implicit, but allow explicit with/without global and other attributes
- [x] with implicit but not explicit with or without global or other attributes
- [x] allow both implicit and explicit roles with or without global or other attributes
- [?] neither implicit nor allowed explicit role doesn't mean "none | presentation" role, the element can still be mapped over to AT by the browser user agent (such as label, link, legend, caption, map).
updated aria definition, and messages, and added more test cases.
working to modify the existing test cases that failed after the aria updates
encountered an error in opening the help link:

after the current aria changes, 33 existing test cases failed, which need to be reviewed and updated one by one.
continuing the test cases, help content test, and the baseline updates.
@shunguoy please provide a test file
Validated