Add aria-* to HTML attributes index table#44086
Conversation
|
Preview URLs (2 pages) Flaws (35) Note! 1 document with no flaws that don't need to be listed. 🎉 Found an unexpected or unresolvable flaw? Please report it here. URL:
(comment last updated: 2026-05-13 09:23:18) |
estelle
left a comment
There was a problem hiding this comment.
Thank you for the PR.
To address the issue, we should also add a mention of ARIA within the HTML gides page. As that page is created by listing a summary of the guides i the HTML directory, we can address the issue by adding a "see also" section and adding a link to ARIA there.
| <code><a href="/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes">aria-*</a></code> | ||
| </td> | ||
| <td> | ||
| Depends on the specific attribute |
There was a problem hiding this comment.
I think "All elements" might be better here, because every element can accept at least one aria-* attribute, like aria-atomic.
There was a problem hiding this comment.
Agree but isn't it going to cause a bit of confusion as to what the difference is between "All elements" and "Global attribute"?
There was a problem hiding this comment.
The role attribute is global, and some aria-* attributes are too, but not all. Maybe @dipikabh has thoughts or even a better wording option.
There was a problem hiding this comment.
role already has a dedicated row in the HTML attributes table so we're only talking about proper aria-* attributes. Your point still stands about not all of them being global.
There was a problem hiding this comment.
I committed with "All elements" for the time being since I think it is still better than what I had first written.
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
russell-aciss
left a comment
There was a problem hiding this comment.
Don't we want to tell people what "ARIA" is before sending them there? We could maybe change "ARIA Guides" to "Accessibility Guides" or "Accessibility Guides and Attributes".
Description
Add a new
aria-*row to the HTML attributes table. The attribute name link points to https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes. This family of attributes is a bit of an outlier regarding theElementcolumn because members don't all apply to the same set of elements, hence the phrasing "Depends on the specific attribute".I also struggled to find a good page to link to in the description. Understanding ARIA Basics looked good but it is a learn page and not a reference so it might not be exactly what users are looking for. In the end I went for ARIA Guides even though it's not only related to ARIA attributes.
Motivation
ARIA attributes are HTML attributes so they need to be mentioned in the HTML attributes table.
Additional details
Related issues and pull requests
Closes #44079