Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

element.arialabelledbyelements - draft #38678

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Mar 17, 2025

FF136 adds support for a lot of aria reflected elements that reference other elements. This adds docs for those.

  • Element.ariaActiveDescendantElement
  • Element.ariaControlsElements
  • Element.ariaDescribedByElements
  • Element.ariaDetailsElements
  • Element.ariaErrorMessageElements
  • Element.ariaFlowToElements
  • Element.ariaLabelledByElements - in progress
  • Element.ariaOwnsElements
  • ElementInternals.ariaActiveDescendantElement
  • ElementInternals.ariaControlsElements
  • ElementInternals.ariaDescribedByElements
  • ElementInternals.ariaDetailsElements
  • ElementInternals.ariaErrorMessageElements
  • ElementInternals.ariaFlowToElements
  • ElementInternals.ariaLabelledByElements
  • ElementInternals.ariaOwnsElements

Related docs can be tracked in #38402

@github-actions github-actions bot added Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed labels Mar 17, 2025
Copy link
Contributor

Preview URLs

External URLs (1)

URL: /en-US/docs/Web/API/Element/ariaLabelledByElements
Title: Element: ariaLabelledByElements property

if ("ariaLabelledByElements" in Element.prototype) {
inputElement.ariaLabelledByElements = [label1Element, label2Element];

log(`Labeled elements: ${inputElement.getAttribute("aria-labelledby")}`);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

According to explainer we should be able to set the ariaLabelledByElements and get back the references using the getAttribute() - provided they have ids. This doesn't work yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant