From cbd1e1fbef443174f91d853445701648e7e17fb2 Mon Sep 17 00:00:00 2001
From: "Patrick H. Lauke"
Web developers MUST NOT use the ARIA `role` and `aria-*` attributes in
a manner that conflicts with the semantics described in the
- [[[#docconformance]]] table. Web developers SHOULD NOT set the ARIA
- `role` and `aria-*` attributes to values that match the implicit
- ARIA semantics defined in the table.
+ [[[#docconformance]]] table. Web developers are discouraged from setting
+ the ARIA `role` and `aria-*` attributes to values that match the
+ implicit ARIA semantics defined in the table, as this is unnecessary.
Setting an ARIA `role` and/or `aria-*` attribute that matches the - implicit ARIA semantics is unnecessary and is NOT - RECOMMENDED as these properties are already set by the browser. + implicit ARIA semantics is unnecessary, as these properties + are already set by the browser. However, explicitly setting these attributes + won't have an adverse effect (provided that they are correct and indeed + match the implicit semantics) - and this practice may be necessary when + supporting older user agents which lack specific implicit semantics, or + when working around browser bugs.
- Implicit ARIA semantics - - -- SHOULD NOT be used + Implicit ARIA semantics (no need to explicitly assign in markup) |
@@ -1176,7 +1179,8 @@
- If not provided an author defined accessible name by other methods: No `role`, and no `aria-*` attributes except + If not provided an author defined accessible name by other methods: + No `role`, and no `aria-*` attributes except `aria-hidden`. @@ -2589,7 +2593,8 @@
|
---|