Skip to content

Potential A11y Violation:
Invalid semantic element role ​

Point of Failure ​

The role="presentation" or "none" should not be used on content that conveys semantic information.

Available Automation Evaluation ​

In checking known available linting and testing tools, these are our findings.

Linting Exists ​

See the ember-template-lint library for the no-invalid-role rule.

Testing Could Exist ​

It's possible that a check could be created for this potential failure. Review linting rule and adapt rule for test suite.

Other Test Methods ​

In addition to automated tests, there are other types of tests that could be conducted to prevent this potential violation.

Developer Authored Test Could Exist ​

Developers should make sure that their code does not violate this rule, and try to write a test that would prevent a regression in accessibility if the code is later changed.

Manual Test Exists ​

Inspect DOM. Ensure that semantic html elements do not have role of presentation or none.

References

Created with ❤️ and ☕️ by Melanie Sumner. Hosted by Netlify.