aria-valid-attr-value mark missing aria-errormessage for review
See original GitHub issueInstead of failing the the aria-valid-attr-value rule, the following should be marked for review. This should happen in the aria-errormessage check.
<div role="textbox" aria-errormessage="my-error" aria-label="A textbox"></div>
Essentially, what needs to change is that we check for aria-errormessage if the target of the attribute exists in the DOM, and if it does not, return undefined to mark it for review, and add an incomplete message to the JSON file.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
aria-errormessage - Accessibility - MDN Web Docs - Mozilla
The aria-errormessage should only be used when the value of an object is not valid; when aria-invalid is set to true .
Read more >ARIA Techniques for WCAG 2.0 - W3C
The WCAG Working Group plans to review which WAI-ARIA techniques are sufficient ... Check whether the value of the aria-required attribute is the...
Read more >Mark invalid form field with [aria-invalid=true] - Drupal
Problem/Motivation We learned during the Twin Cities 2013 accessibility testing that invalid form fields are invisible to users navigating ...
Read more >Demystifying WAI-ARIA, 18 ARIA attributes that every web ...
For future expansion, the aria-invalid attribute is an enumerated type. Any value not recognized in the list of allowed values MUST be treated...
Read more >ARIA Made Easy | IT Accessibility - University of Arizona
Marking up Invalid Fields with ARIA · Use the aria-invalid attribute to mark those fields that are currently invalid (badly formatted data for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Sounds good. Let me know if you need anything.
Ah I see, so it’s not expected that
aria-errormessageis only added when there is an error message then, it’s permanently there whether there is currently an error or not 👍Thanks!