Skip to content

Files

Latest commit

 

History

History
16 lines (10 loc) · 532 Bytes

a11y-misplaced-role.md

File metadata and controls

16 lines (10 loc) · 532 Bytes

Pattern: Misplaced role attribute

Issue: -

Description

Certain reserved DOM elements do not support ARIA roles, states and properties. This is often because they are not visible, for example meta, html, script, style. This rule enforces that these DOM elements do not contain the role props.

<!-- A11y: <meta> should not have role attribute -->
<meta role="tooltip">

Further Reading