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

Role Rules from the ARIA Spec (Fallback Role, Host Language Conflict, Invalid and Abstract Roles, etc.) #8

Closed
Tracked by #3
cookiecrook opened this issue Mar 7, 2023 · 1 comment · Fixed by web-platform-tests/wpt#38925
Assignees

Comments

@cookiecrook
Copy link
Collaborator

cookiecrook commented Mar 7, 2023

I plan to start working on role rules from the ARIA spec... in wpt/wai-aria/role… Here's the general plan:

I'll include a ReadMe that points the implicit role mappings (e.g. <main> -> "main") should be in the spec folder for each host language mapping spec, like wpt/html-aam.

I'll add several files that test things like:

  • the simple explicit role mappings for all defined core ARIA roles... e.g. <div role="group"> -> "group" (note: this will be a single big file in mostly alphabetical order by role name, but will not include edge or error cases)
  • fallback role tests role="switch checkbox" role="foo checkbox" role="checkbox foo"
  • invalid roles role="foo" including abstract roles role="widget"
  • contextual role invalidations like orphaned roles outside their required context like a cell outside a table <div role="cell"> -> "undefined" (the resulting roles may be underspecified in some cases, so there may be implementation differences)
  • Other error or edge cases as I think of them. I'll probably review all the RFC MUST and MUST NOT statements for UAs in the ARIA spec, and discuss with other ARIA WG members along the way.
@cookiecrook
Copy link
Collaborator Author

@jnurthen @spectranaut are there other obvious error case patterns or categories of core role testing I missed? thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant