Skip to content

Element.ariaLabelledByElements/areia-labelledby - clarify label generic elements#43779

Merged
pepelsbey merged 2 commits intomdn:mainfrom
hamishwillee:ff150_ariaLabelledByElements
Apr 14, 2026
Merged

Element.ariaLabelledByElements/areia-labelledby - clarify label generic elements#43779
pepelsbey merged 2 commits intomdn:mainfrom
hamishwillee:ff150_ariaLabelledByElements

Conversation

@hamishwillee
Copy link
Copy Markdown
Collaborator

This tidies Element.ariaLabelledByElements and aria-labelledby to make it clear that you can't apply them to div/span elements unless they have an appropriate ARIA role set (their role is "generic" by default. I also tidied Element.ariaLabelledByElements to move more information into the description, and just keep the most essential info in the top section.

Fixes #43765

@hamishwillee hamishwillee requested a review from a team as a code owner April 14, 2026 01:28
@hamishwillee hamishwillee requested review from pepelsbey and removed request for a team April 14, 2026 01:28
@github-actions github-actions bot added Content:WebAPI Web API docs Content:Accessibility Accessibility docs size/s [PR only] 6-50 LoC changed labels Apr 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 14, 2026

Preview URLs (2 pages)

(comment last updated: 2026-04-14 02:09:29)

Copy link
Copy Markdown
Member

@pepelsbey pepelsbey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you 🙂

@pepelsbey pepelsbey merged commit 2f20bc4 into mdn:main Apr 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Accessibility Accessibility docs Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ariaLabelledByElements describes naming "generic container elements", a prohibited "generic" role by default?

4 participants