Skip to content
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

Open
zcorpan opened this issue Jun 28, 2019 · 7 comments
Open
Assignees
Labels
clarification clarifying or correcting language that is either confusing, misleading or under-specified good first issue
Milestone

Comments

@zcorpan
Copy link
Member

zcorpan commented Jun 28, 2019

aria-selected is defined as

Indicates the current "selected" state of various widgets.

https://w3c.github.io/aria/#aria-selected

aria-selected is a supported state for row.

row is allowed in table.

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

@joanmarie
Copy link
Contributor

Answer: No.

@joanmarie joanmarie added this to the ARIA 1.2 milestone Jul 11, 2019
@joanmarie
Copy link
Contributor

To be clear, my "Answer: No" is to the issue summary (should aria-selected be allowed on row in table?). What you say in the opening report does indeed "make sense." 😄

@mcking65 mcking65 changed the title Should aria-selected be allowed on row in table? Should aria-selected be allowed on row, columnheader, or rowheader in table? Aug 2, 2019
@mcking65
Copy link
Contributor

mcking65 commented Aug 2, 2019

Expanding scope of this issue because columnheader and rowheader are also allowed in table and should not be selectable in that context.

@mcking65
Copy link
Contributor

mcking65 commented Aug 2, 2019

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.

@mcking65 mcking65 added the F2FCandidate Candidate topics for F2F (or Virtual F2F) meeting label Aug 2, 2019
@jnurthen jnurthen added F2F Topics For F2F (or virtual F2F) and removed F2FCandidate Candidate topics for F2F (or Virtual F2F) meeting labels Sep 3, 2019
@joanmarie
Copy link
Contributor

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.

@zcorpan
Copy link
Member Author

zcorpan commented Sep 27, 2019

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.

@jnurthen
Copy link
Member

@zcorpan thanks for the comment.
Looking at the spec in more detail I find
"User agents MUST ignore non-global states and properties used on an element without a role supporting the state or property; either defined as an explicit WAI-ARIA role, or as defined by the host language WAI-ARIA semantic matching an appropriate WAI-ARIA role."
So it does seem that according to the spec text we should require that an invalid attribute is not exposed to the a11y API.

@jnurthen jnurthen modified the milestones: ARIA 1.2, ARIA 1.3 Nov 19, 2019
@jnurthen jnurthen removed the F2F Topics For F2F (or virtual F2F) label Nov 19, 2019
@spectranaut spectranaut added the clarification clarifying or correcting language that is either confusing, misleading or under-specified label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification clarifying or correcting language that is either confusing, misleading or under-specified good first issue
Projects
None yet
Development

No branches or pull requests

5 participants