-
Notifications
You must be signed in to change notification settings - Fork 381
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 2.0 have a role corresponding to every HTML element? #552
Comments
This is crucial for allowing custom elements to achieve the same accessibility capabilities as built-in elements. I don't think it's been discussed to the point where we'd say it's a "consensus requirement", but everyone recognizes that without having this, authors that use web components will likely produce pages with sub-par accessibility. |
I'm not sure that every element needs a role, but all those with distinct UI do. However, doesn't ARIA already have more roles than HTML has elements? |
What new roles do we specifically need? |
@domenic do you see the work you began in HTML as Custom Elements as a logical extension to this? |
@rniwa I believe @slightlyoff has expressed the thought that having ARIA roles for the complete set of HTML elements would be a good thing. |
@annevk yes, ARIA has roles that have no HTML equivalent (like tab, tablist and tabpanel for example). ARIA was originally intended to provide semantics for the (then) emerging webapps that borrowed design patterns from software UIs (toolbars, tabpanels etc.). xHTML was the original host language, but the goal was to provide semantic information that was missing from HTML. Many ARIA roles do map directly onto HTML elements now though - but not all, and I think that is what @slightlyoff has suggested might be a useful thing to have. |
There are a bunch of them. If you go to https://w3c.github.io/aria/html-aam/html-aam.html#html-element-role-mappings, click "View as a single table", there are a bunch of rows with "No corresponding role". Here are the first few interesting ones (i.e. ones that seem to have interesting native correspondences with AT, as shown by the subsequent columns):
I'm not sure exactly what this means. The HTML as Custom Elements project was where I first encountered the problem, where if I wanted to do something very simple like create a |
@domenic "I'm not sure exactly what this means. The HTML as Custom Elements project was where I first encountered the problem, where if I wanted to do something If having a complete ARIA implementation of HTML roles would be useful, and assuming ARIA WG agrees to doing the work, would a logical next step be to bring people together to complete the HTML as Custom Elements as a reference? |
It might be an interesting project, but it's a large one, and there are several other blockers to getting full parity (see domenic/html-as-custom-elements#27 and other issues under https://github.com/domenic/html-as-custom-elements/issues?q=is%3Aissue+is%3Aopen+label%3Aprimitive for just the things I discovered while working on a very small set of elements; others are summarized on https://domenic.github.io/html-as-custom-elements/, and https://github.com/domenic/html-as-custom-elements/blob/master/docs/accessibility.md points out that we also need states, properties, accessible name and description, and some sort of manipulation ability, not just roles). I'm not sure by what criteria it would be the next logical step---what are we stepping toward? |
@domenic The github.io URL has not been updated. Here is the latest editor's draft of the HTML-AAM: http://rawgit.com/w3c/aria/master/html-aam/html-aam.html It is true that some elements are not mapped as they provide no value to assistive technologies. |
agree with @annevk. each role and each feature should be carefully considered, discussed, have a use case before it is added to the spec |
HTML 1:1 role parity was in the original scope of ARIA 1.1 for this reason. Note: We've pushed back on allowing ARIA to accept roles for functional elements like |
So if there is a way to do spec control & query behavior for functional all roles, I'm all for it. e.g.
|
Could you provide me with references to the native controls methods? I On Mon, Sep 19, 2016 at 5:12 AM, James Craig notifications@github.com
|
Per #729 this is now resolved. |
(Well, maybe not fully resolved, but that has pointers to the next step issues for this.) |
We have heard that web components may want this. We need to know if that is in fact an actual requirement that has reached consensus from Web Components as it is a lot of work.
The text was updated successfully, but these errors were encountered: