-
Notifications
You must be signed in to change notification settings - Fork 1
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
📝 Spec issue: incorrect role mappings #25
Comments
These are all great test cases I need to add! One issue like this is fine. I haven’t gone through the referenced specs fully but I suspect most if not all of the test failures are valid and could be addressed in this library. After reading through everything, will let you know if I interpret anything differently than you have. Thank you! |
For completeness / future reference, see the following html-aria issues for the areas where html-aria has yet to mirror the html-aam spec for implicit role definitions: |
Thanks! Yeah when implementing my goal was to follow the complete spec, but I wasn’t aware the HTML AAM spec had all the guidance it does. We can just use this (and PR #38) to track the bulk implementation of that doc. And I’m sure I’ll miss a thing here or there that we can fix in followups |
Whoops—seems “Partially fix [issue]” in PR description is interpreted as “fix [issue]”. Noted for next time. |
Yeah have to be careful with word choice 😅 I’ve settled on “Relates to” as a “Partially fixes” alternative. |
Specification reference(s)
HTML-AAM 1.0 Working Draft:
HTML-ARIA Recommendation:
https://www.w3.org/TR/html-aria/#el-aside
This somewhat contradicts the HTML-AAM 1.0 spec, but in my experience it is often an oversight than deliberate - worth raising an issue to see if HTML-ARIA needs an update to have a conditional role, similar to
footer
etc.https://www.w3.org/TR/html-aria/#el-section
https://www.w3.org/TR/html-aria/#el-th
Would suggest the spec is ambiguous here in not defining exactly what role to take when - the HTML-AAM 1.0 spec is more precise here.
SVG-AAM 1.0 Working Draft:
a
,g
, andimage
, but potentially other role mappings as well.WPT:
Output
JSDOM WPT output:
Notes
This issue is raised off the back of guidepup/virtual-screen-reader#113 where I've copied only the stable (non-"tentative") test failures across, loosely summarised as:
aside
element roles when in different contexts being incorrectsection
element having an incorrect role when it has no accessible nameth
element having an incorrect role when it has arow
ancestorlink
element having an incorrect roleg
element having an incorrect roleimage
element having an incorrect roleHappy to split into separate issues! Appreciate some of this is relating to context, some for naming conditions, and others are just missing roles. I've got a feeling that this lib might also be missing https://www.w3.org/TR/dpub-aam-1.0/ role mappings as well?
Also please contest if one of these issues actually lies downstream in
@guidepup/virtual-screen-reader
and I'm incorrect in pointing here.Contributing
The text was updated successfully, but these errors were encountered: