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
Issue1019 initial draft for accessible name using caption role #1020
Conversation
…d elements that allow name from caption
…d elements that allow name from caption
Updated the pull request by restricting the use of the caption technique to first or last child element. |
looking at this some more and the caption role definition in general, i'm curious as to why it states:
in HTML, caption and figcaption provide accessible names for these elements, not descriptions. |
Suggestion from ARIA call today to add treegrid to the list of roles and to merge legend and caption to create a single role |
@scottaohara @jnurthen @mcking65 I have updated the pull request to make caption and legend synonyms, but there is one difference that may need to be addressed. Elements with the role caption should be able to provide the accessible name for elements with the role figure, from either being the first or last child element with role of caption. In the updated pull request I define caption as providing an accessible name from either being the first or last child element, and legend only from being the first child element. |
Actually, according to the HTML spec, table caption needs to be the first child also:
It has the same requirement as legend:
It's only figcaption that can be first or last:
So:
Agreed. If we define caption and legend roles as synonyms, then HTML caption, figcaption, and legend elements would all default to a single "caption/legend role", and this would likely lead to some strange ambiguities regarding whether or not "caption/legends" are allowed at the end of their parent elements. |
Closing as this feature is no longer intended to ship |
Proposed definition of accessible name from caption
Proposed list of roles that support name from caption
proposed changes to
figure
definitionproposed changes to
grid
definitionproposed changes to
table
definition💥 Error: 500 Internal Server Error 💥
PR Preview failed to build. (Last tried on Jan 20, 2021, 11:00 PM UTC).
More
PR Preview relies on a number of web services to run. There seems to be an issue with the following one:
🚨 Spec Generator - Spec Generator is the web service used to build specs that rely on ReSpec.
🔗 Related URL
If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.