Skip to content
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

elements which are prohibited from being named #62

Closed
scottaohara opened this issue Mar 13, 2022 · 3 comments
Closed

elements which are prohibited from being named #62

scottaohara opened this issue Mar 13, 2022 · 3 comments

Comments

@scottaohara
Copy link
Contributor

scottaohara commented Mar 13, 2022

With ARIA 1.2 certain roles are prohibited from being named by authors.

ARIA in HTML has identified the HTML elements which share these roles, and in some cases, have no corresponding ARIA role but too should be prohibited from being named by authors. The following list of elements should flag an author error if aria-label or aria-labelledby are specified on them UNLESS a role which allows for naming is also specified.

Many of the following elements map to (generic) or no corresponding role - often which does not adequately support naming from author. Or, to roles which also explicitly prohibit naming from authors.

test case

@gezlemon
Copy link
Collaborator

Hi @scottaohara I've added rules so that those elements are listed as an error unless they have a role. The property values for nameable will probably need updating in the roles rule set, as I've set them all to "yes", apart from "presentation" and "none".

@scottaohara
Copy link
Contributor Author

awesome. thank you @gezlemon

this update definitely gets us on our way here though.

wondering if there's a way we can change the a error to be "a without href" to make that more clear?

@gezlemon
Copy link
Collaborator

Hi @scottaohara good point. I've updated the messages for a and area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants