-
Notifications
You must be signed in to change notification settings - Fork 70
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
"Role attribute has valid value" [674b10]: how to enforce WCAG mappings #1862
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,9 +37,14 @@ This rule applies to any `role` attribute for which all the following are true: | |
- the attribute has a value that is neither empty ("") nor only [ASCII whitespace][]; and | ||
- the attribute is specified on an [HTML or SVG element][] which is not [programmatically hidden][]. | ||
|
||
## Expectation | ||
## Expectation (mapping to 4.1.2) | ||
|
||
Each test target either has at least one token which is a valid value corresponding to a non-abstract role from [WAI-ARIA Specifications][]; or the test target is not a [user interface component](https://www.w3.org/TR/WCAG21/#dfn-user-interface-components) | ||
|
||
## Expectation (mapping to 1.3.1) | ||
|
||
Each test target either has at least one token which is a valid value corresponding to a non-abstract role from [WAI-ARIA Specifications][]; or the test target has not a [structure](https://www.w3.org/TR/WCAG21/#dfn-structure) conveyed through presentation. | ||
Comment on lines
+40
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Proposing two different versions, depending on the mapping we want to have. The 4.1.2 version would accept a mispelled There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm struggling to understand how any test target could meet the second part of the expectation version 1.3.1. If the test target must not be programatically hidden then it always have structure conveyed through presentation (because it will always be organised in relation to other parts of the web page). |
||
|
||
Each test target has at least one token which is a valid value corresponding to a non-abstract role from [WAI-ARIA Specifications][]. | ||
|
||
## Assumptions | ||
|
||
|
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.
I think both the UIC and the structure definitions are ambiguous. UIC because it is not clear who is meant by "users", and "structure" for not specifying what "organize" means.
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.
We can replace UIC by our definition of Instrument but that would require to define the objective, so I'm not sure it would actually work 😕