-
Notifications
You must be signed in to change notification settings - Fork 49
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
Conflicts with host language property and aria-level #454
Comments
yeh, can get why you could come away with that initial understanding here, but no this isn't a conflict with a native attribute of the given element. There is no native 'level' attribute for heading elements where it would take precedent over the aria-level attribute. the level is implicit based on the tag name, but you essentially need both the aria attributes to consistently overwrite the role/level. This is not the same as something like a native checkbox where there is an attribute and specific functionality for the checked state of the control that could conflict with the aria-checked attribute. closing as i think this addresses your question, and this does not represent an issue with this specification. |
See also: w3c/aria#1433 |
This is not so easy even with a checkbox:
And so far just the theory: Chrome and Edge only pay attention to the ARIA attribute aria-checked and ignore the explicit or implicit checked status coming from HTML. This is of course only a bug of the two browsers and not the specification |
yes @JAWS-test, my mention of "...there is an attribute and specific functionality..." was a very high level allusion to what you mention without needing to restate how checkboxes work. i'm not really sure I follow why you mention "This is not so easy even with a checkbox"... as that's sort of the point. With that said, I think we can stop here. I'd rather not have to elaborate on questions that were already answered, unless the OP asks for additional clarity. |
@kengdoj The paragraph you quoted only says that in case of possible conflicts between ARIA and the host language, the corresponding specification must specify how these conflicts are resolved. This is in the case of HTML: https://w3c.github.io/html-aria/ |
@scottaohara and @JAWS-test, thank you both! |
Regarding 8.5 Conflicts with Host Language Semantics, browsers seem to be handling this part of the spec differently:
We checked the accessibility tree in Chrome and Firefox for the heading level of this sample code:
<h2 role="heading" aria-level="3">
Is our understanding of the spec incorrect?
The text was updated successfully, but these errors were encountered: