-
Notifications
You must be signed in to change notification settings - Fork 125
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
Should aria-selected be allowed on row, columnheader, or rowheader in table? #1008
Comments
Answer: No. |
To be clear, my "Answer: No" is to the issue summary (should |
Expanding scope of this issue because columnheader and rowheader are also allowed in table and should not be selectable in that context. |
Essentially, this is another side effect of the ontology where we have a widget branch and a structure branch. In some cases like table and grid, we have elements that are structurally identical but one is static and the other is interactive. The ontology is inconsistent for required owned elements. For instance, we have cell and gridcell to distinguish the differences between static cells and interactive cells. We do not have analogous distinctions for row, columnheader, or rowheader. Consider nested lists and trees. We have 100% separation in the ontology. If you want an interactive hierarchical list, you use tree, with groups of treeitem elements nested in treeitem elements. And, if you want nested static lists, you use list elements nested in listitem elements. Since we do not have a concept of control patterns, this is probably how table and grid should be. As it is we use hacks that can be confusing and make the spec complex. For instance, we opted to make separator a widget only if it is focusable. We could do something similar for row, columnheader, and rowheader, making it a widget only if it is in the grid context. |
Consensus from TPAC: Make the necessary changes in the spec. We shouldn't need to make any changes elsewhere (APG or Core-AAM). In addition, we don't anticipate needing testing, etc. because this will fall under the category of "handling authoring errors" which is all user agents SHOULD statements. |
Hmm, is that a policy ARIA has? If so, I disagree with it; I think it's important to achieve interoperability for error handling. |
@zcorpan thanks for the comment. |
aria-selected
is defined ashttps://w3c.github.io/aria/#aria-selected
aria-selected
is a supported state forrow
.row
is allowed intable
.A
table
is not a widget.Does this make sense? It seems to me that, if you can select rows in a table, it should be a widget, and thus use the
grid
role.cc @spectranaut
The text was updated successfully, but these errors were encountered: