question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aria-valid-attr-value mark missing aria-errormessage for review

See original GitHub issue

Instead 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
strakercommented, Oct 9, 2020

Sounds good. Let me know if you need anything.

0reactions
patrickhulcecommented, Apr 23, 2021

Ah I see, so it’s not expected that aria-errormessage is only added when there is an error message then, it’s permanently there whether there is currently an error or not 👍

Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found