fix(aria-valid-attr-value): handle multiple aria-errormessage IDs#4973
Conversation
|
Thanks for the pr. Unfortunately it isn't an accessibility violation if all the |
Thanks for the comment, updated it |
|
@straker could you please check again? |
|
Sorry for the delay. I've been out of office and so haven't had time to look at this. After discussing this with the team here is what we are thinking. Testing multiple Taking that into consideration, as well as the various edge cases that would need to be handled to support multiple ids (what happens if the first id isn't on the page but all others are, what happens if the last id is the only one on the page, etc.), we feel it's best to report multiple ids on What this would mean is that we would update the |
Thanks for the comment, updated it |
straker
left a comment
There was a problem hiding this comment.
Thanks for the changes. This is almost done but needs a few more tests. There should be an integration test or 2 in aria-valid-attr-value that tests multiple ids on aria-errormessage returns false. To do this add the HTML to the file with a unique id, then add that ID to the corresponding JSON file in the violations section.
Added the tests |
…-valid-attr-value.html.
When aria-errormessage contains multiple space-separated IDs, the check now correctly verifies that all IDs are present in aria-describedby instead of failing to match the entire string against tokenized values.
Closes: #4957