You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,7 +197,7 @@ rules in templates can be disabled with eslint directives with mustache or html
197
197
|[template-no-nested-interactive](docs/rules/template-no-nested-interactive.md)| disallow nested interactive elements ||||
198
198
|[template-no-nested-landmark](docs/rules/template-no-nested-landmark.md)| disallow nested landmark elements ||||
199
199
|[template-no-pointer-down-event-binding](docs/rules/template-no-pointer-down-event-binding.md)| disallow pointer down event bindings ||||
200
-
|[template-no-unsupported-role-attributes](docs/rules/template-no-unsupported-role-attributes.md)| disallow ARIA attributes that are not supported by the element role ||||
200
+
|[template-no-unsupported-role-attributes](docs/rules/template-no-unsupported-role-attributes.md)| disallow ARIA attributes that are not supported by the element role ||🔧||
201
201
|[template-no-whitespace-within-word](docs/rules/template-no-whitespace-within-word.md)| disallow excess whitespace within words (e.g. "W e l c o m e") ||||
202
202
|[template-require-aria-activedescendant-tabindex](docs/rules/template-require-aria-activedescendant-tabindex.md)| require non-interactive elements with aria-activedescendant to have tabindex || 🔧 ||
203
203
|[template-require-iframe-title](docs/rules/template-require-iframe-title.md)| require iframe elements to have a title attribute ||||
Disallows ARIA attributes that are not supported by the element's role.
3
+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
6
4
7
-
Different ARIA roles support different sets of ARIA attributes. Using unsupported attributes can cause confusion and doesn't provide the intended accessibility benefits.
5
+
<!-- end auto-generated rule header -->
8
6
9
-
## Rule Details
7
+
Many ARIA states and properties are only available to elements with particular roles. This ensures that the appropriate information gets exposed to a browser's accessibility API for the given element.
10
8
11
-
This rule checks elements with specific ARIA roles and ensures they only use supported ARIA attributes for that role.
9
+
This rule disallows the use of ARIA properties unsupported by an element's defined role. An element's role may either be explicitly set by the `role` attribute, or it may be implicitly defined through the use of HTML elements with inherent roles. For example, `<input type="checkbox"` has the implicit role of `checkbox`.
0 commit comments