Skip to content

fix(standards): update aria-errormessage and aria-details to be idrefs#5157

Open
straker wants to merge 1 commit into
developfrom
standards-errormessage-details
Open

fix(standards): update aria-errormessage and aria-details to be idrefs#5157
straker wants to merge 1 commit into
developfrom
standards-errormessage-details

Conversation

@straker

@straker straker commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

This is in the current WAI-ARIA 1.3 draft and both attributes were changed to idrefs types. Since the AOM property is an idrefs type (returns an array) this allows us to be in sync with that for the Element Internals work.

The aria-errormessage check already accounts the attribute being an idrefs value and will incomplete if the value has more than one id, so no changes should be needed with this pr.

@straker straker requested a review from a team as a code owner June 10, 2026 17:07

@chutchins25 chutchins25 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice — clean alignment with the ARIA 1.3 idrefs change, and the aria-errormessage analysis checks out: the aria-valid-attr-value check skips it via skipAttrs, and the dedicated aria-errormessage check handles the multi-id case independently of the standards type. One question inline about test coverage on the aria-details side.

},
'aria-details': {
type: 'idref',
type: 'idrefs',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a test case for the aria-details side of this? Unlike aria-errormessage (skipped in aria-valid-attr-value + covered by its own check), aria-details flips behavior here — aria-details="a b" was a violation before and now passes if one id resolves — and I didn't see a multi-id case covering it.

@WilcoFiers WilcoFiers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agreed. I wouldn't mind seeing a test here. Also, can you test these actually work? I think we should still make this change if it doesn't, but we may want to consider opening an issue to add a check with a dedicated issue message for it if people use multiple IDs in aria-errormessage when it doesn't work.

@straker

straker commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

add a check with a dedicated issue message for it if people use multiple IDs in aria-errormessage

We already have that. It was added in the pr I linked above.

As for adding a test for aria-details, we currently have no tests that test its value. Should we add one to something like aria-valid-attr-value?

@WilcoFiers

Copy link
Copy Markdown
Contributor

We already have that. It was added in the pr I linked above.

Didn't realize that. Fair enough!

As for adding a test for aria-details, we currently have no tests that test its value. Should we add one to something like aria-valid-attr-value?

Yes I think that'd be good.

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.

3 participants