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
ARIA role insertion
and deletion
#1558
Comments
not presently allowed on the section element. Up for consideration if this needs to change. but with that said... what's your use case? as if you want to imply a section is deleted, it'd be best to do it as
or if it's not a section you want deleted, and you're just arbitrarily using that element, then why not just use a div, or again, the native element that does the same thing? |
when you say not allowed, do you mean by the validator or by the spec? My reading of the spec was that it was allowed on any flow content. My interest in using the |
no, sorry. that part of the spec is informatively stating what each role would be classified as, and descendants that would be expected for that element. the table above https://w3c.github.io/html-aria/#el-section is what you should be looking at for what ARIA attributes are allowed on a particular element |
for instance, if you were trying to identify a section with an accname, thus a region landmark, as a role=deletion - the region landmark would be removed in place of this deletion role. this would cause soemthing that was previously easily discoverable as something that could become hard to re-locate. |
thanks a bunch for the pointer and the explanation! It's very clear this isn't a validator bug, so I'll close this issue. And from the explanation, it looks like role-less wrapper elements would be hard to avoid here, and that expanding the set of elements that can use |
I've been trying to use
role=insertion
to markup a complex document containing diffs, but the validator complains with(likewise for the role
deletion
)The text was updated successfully, but these errors were encountered: