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

Rule: Prevent using a role attribute value that matches the default semantic value of the element. #68

Closed
rwjblue opened this issue Jun 2, 2016 · 3 comments

Comments

@rwjblue
Copy link
Member

rwjblue commented Jun 2, 2016

{{! bad }}

<button role="button">O_o</button>
{{! good }}
<div role="button"></div>
@rwjblue
Copy link
Member Author

rwjblue commented Jun 2, 2016

@nathanhammond / @Robdel12 / @sarenji (and anyone else) - Where can I get the canonical list of "default" roles by tag name?

@nathanhammond
Copy link

@rwjblue ARIA roles are fortunately all based on RDF and have super-specific inheritance: https://www.w3.org/TR/wai-aria/roles
https://www.w3.org/TR/wai-aria/rdf_model.svg

The related concepts specify which semantics are similar, but does not guarantee 1:1 behavior. ARIA is a spec on top of a spec and there may be reasons to attach the same role as the default semantics for that browser. I'm not sure that this rule is one we want to pursue.

@rwjblue
Copy link
Member Author

rwjblue commented Jun 2, 2016

Gotcha, thank you!

@rwjblue rwjblue closed this as completed Jun 2, 2016
bjornharrtell pushed a commit to bjornharrtell/ember-template-lint that referenced this issue Jun 11, 2019
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