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
@@ -341,13 +341,19 @@ Further, a common mistake many simple accessibility libraries make is mapping ar
341
341
342
342
_Note: `—` = [no corresponding role](#whats-the-difference-between-no-corresponding-role-and-the-none-role). Also worth pointing out that in other cases, [global aria-\* attributes](https://www.w3.org/TR/wai-aria-1.3/#global_states) are allowed, so this is unique to the element and NOT the ARIA role._
343
343
344
-
### Technical deviations from the spec
344
+
### Discrepancies between specs
345
345
346
-
#### Mark
346
+
Though the [HTML in ARIA](https://www.w3.org/TR/html-aria) spec was the foundation for this library, at points it conflicts with [AAM](https://www.w3.org/TR/html-aam-1.0). We also have browsers sometimes showing inconsistent roles, too. For these discrepancies, we compare what the specs recommend, along with the library’s current decision in an attempt to follow the most helpful path.
347
347
348
-
The `<mark>` tag gets the `mark` role. Seems logical, right? Well, not according to the spec. It’s [not listed in the HTML in ARIA spec](https://www.w3.org/TR/html-aria/#el-mark), and it’s worth noting that `<mark>` is a [_related concept_](https://www.w3.org/TR/wai-aria-1.3/#mark), not a base concept as elements usually are.
348
+
| Element |[HTML in ARIA](https://www.w3.org/TR/html-aria)|[AAM](https://www.w3.org/TR/html-aam-1.0)| Browsers\*| html-aria |
|`<dd>`| No corresponding role | definition | definition | definition |
351
+
|`<dl>`| No corresponding role | list | (inconsistent) | No corresponding role |
352
+
|`<dt>`| No corresponding role | term | term | term |
353
+
|`<figcaption>`| No corresponding role | caption | caption (`Figcaption` in Chrome) | caption |
354
+
|`<mark>`| No corresponding role | mark | mark | mark |
349
355
350
-
But despite the ARIA specs being pretty clear that `<mark>` and `mark` aren’t directly equivalent, all modern browsers today seem to think they are, and `<mark>` always gets a `mark` role. For that reason, html-aria has sided with practical browser implementation rather than the ARIA spec.
0 commit comments