FreedomScientific / standards-support

Contains documentation for Vispero software support of Web standards
https://freedomscientific.github.io/standards-support/
GNU General Public License v3.0
110 stars 12 forks source link

Screen Readers Cannot Announce Error Messages for Empty Required Fields #713

Closed helenliao1 closed 1 year ago

helenliao1 commented 1 year ago

Summary

When there is an error in empty required fields, screen reader is not announcing the error message. Example in this codepen.

Expected result

Screen reader should announce the error message for empty error fields

Actual result

Screen reader is skipping the error message

Additional Information

JAWS version and build number: 2021, 2022 and 2023

JAWS-test commented 1 year ago

When reading with the virtual cursors (arrow key navigation), the error message is output correctly.

It is not output for TAB navigation. This is not an error of JAWS, but of the source code. In order to output the message, the field and message must be linked, e.g. by aria-errormessage (https://w3c.github.io/aria/#aria-errormessage)