Re:Don't put aria-label on generic elements like divs
by nailer on Tuesday May 26, 2026 @03:57PM
(#48285152)
I didn't ask for resources on ARIA, are you replying to another comment?
[ Parent
| on HN ]
Re:Don't put aria-label on generic elements like divs
by rhdunn on Tuesday May 26, 2026 @04:20PM
(#48285445)
You said "see this article" re: how aria-label is not applicable to div elements, hence the second link which is the WAI-ARIA guide on labelling elements.
You also said that ARIA can't help with custom controls in that post, which is where the other links are applicable as they describe doing just that. I.e. using ARIA tags to implement tabs, accordions, etc. either with or without a framework library.
Re:Don't put aria-label on generic elements like divs
by nailer on Tuesday May 26, 2026 @04:25PM
(#48285506)
> You also said that ARIA can't help with custom controls in that post
I didn't write the post. The author believes in ARIA, I believe ARIA is fundamentally broken.
Re:Don't put aria-label on generic elements like divs
by rhdunn on Tuesday May 26, 2026 @05:09PM
(#48286002)
post != article
From https://news.ycombinator.com/item?id=48281764:
> > ARIA can help when devs want to use the wrong elements for some reason or for custom controls.
> But it can't. See this article.
Re:Don't put aria-label on generic elements like divs
by nailer on Tuesday May 26, 2026 @08:11PM
(#48287754)
People post both articles and comments to HN. My comment pointed out that ARIA can't help with anything as ARIA is a boil the ocean approach.
Re:Don't put aria-label on generic elements like divs
by RobMurray on Thursday May 28, 2026 @04:48AM
(#48306378)
ARIA is a solution to a specific problem, not something that should be used on every site. HTML is accessible out of the box when semantic elements are used as intended. If you are using a div as a button, you probably aren't hand writing HTML. It is likely part of a library. Adding the necessary ARIA attributes benefits every site using the library. Your boiling the ocean analogy implies that every web developer needs to scatter ARIA attributes all over their code, which just isn't true.