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

Write tests for DPUB-AAM role mapping #71

Closed
Tracked by #3
cookiecrook opened this issue Oct 17, 2023 · 3 comments · Fixed by web-platform-tests/wpt#42986
Closed
Tracked by #3

Write tests for DPUB-AAM role mapping #71

cookiecrook opened this issue Oct 17, 2023 · 3 comments · Fixed by web-platform-tests/wpt#42986
Assignees

Comments

@cookiecrook
Copy link
Collaborator

cookiecrook commented Oct 17, 2023

We need DPUB computedrole tests for:
https://w3c.github.io/dpub-aam/#mapping_role_table

Possible Prerequisite: Does DPUB-AAM need a computedrole column added to the mapping table? I think the answer is likely "No" because in most cases, the computedrole will be the literal role name such as doc-chapter but I'd need to re-review the role mapping list.

Update: I do think we either need:

  • a normative statement in DPUB-AAM that says ~"UAs MUST expose the literal role name as the computedrole", or
  • a normative mapping column on the table... this second option would be easiest to update for example, if doc-chapter ever gets promoted to chapter in the core ARIA spec. Or if there are special cases, abstracts, and/or ignorables...
@cookiecrook
Copy link
Collaborator Author

Working on the prerequisite now:

@cookiecrook
Copy link
Collaborator Author

cookiecrook commented Nov 7, 2023

Note: In w3c/dpub-aam#33 I added the column instead of the new RFC-2119 statement because this format can allow exceptions in the future... Quintessential example, if doc-chapter gets moved into Core-AAM, computedrole should return chapter not doc-chapter.

@cookiecrook cookiecrook self-assigned this Nov 7, 2023
@cookiecrook
Copy link
Collaborator Author

cookiecrook commented Nov 7, 2023

Another example of when the column format would be more useful is if DPUB wants to expose any of the contextual role usage as generic, similar to how HTML-AAM and Core-AAM do in some places.

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