Skip to content

fix(aria): split id reference lists on any whitespace - #43360

Closed
Ravi Kumar Gupta (EDWARD-012) wants to merge 1 commit into
microsoft:mainfrom
EDWARD-012:fix-aria-idrefs-whitespace
Closed

Ravi Kumar Gupta (EDWARD-012) wants to merge 1 commit into
microsoft:mainfrom
EDWARD-012:fix-aria-idrefs-whitespace

Conversation

@EDWARD-012

Copy link
Copy Markdown
Contributor

Summary

  • getIdRefs split ID reference lists on spaces only, so IDs separated by a newline or a tab were dropped from the accessible name and description. Split on whitespace, the same way ariaSnapshot.ts already splits aria-owns.

Fixes #43359

ID reference lists such as `aria-labelledby` and `aria-describedby`
are separated by ASCII whitespace, but only spaces were treated as
separators. IDs separated by a newline or a tab were dropped from the
accessible name and description.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: aria-labelledby and aria-describedby ignore IDs separated by a newline or a tab

2 participants