Form validates in screen readers despite 'novalidate' attribute
Categories
(Core :: Disability Access APIs, defect, P3)
Tracking
()
People
(Reporter: anika.henke, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: parity-ie, parity-safari, testcase)
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
| Reporter | ||
Comment 4•7 years ago
|
||
| Reporter | ||
Comment 5•4 years ago
|
||
I have just re-tested and found this is still an issue with Firefox, although it's also an issue with Chrome, both while using NVDA and JAWS. So, not sure if this is a Firefox and Chrome bug or an NVDA and JAWS bug.
Evidence that this behaviour is not as intended (or at least inconsistent) is that when you use aria-required instead of required, the screen reader does not announce "invalid entry" like it wrongly does with required.
See https://jsbin.com/tijewij to test the same form but with aria-required.
Updated•4 years ago
|
It seems that you're facing an issue where a form is still being validated by screen readers despite the presence of the 'novalidate' attribute. The 'novalidate' attribute is meant to disable browser validation for form fields, but it might not affect how screen readers interact with the form.
Screen readers can have their own mechanisms for validating and interacting with web content, which might not be affected by the 'novalidate' attribute. It's also possible that the screen reader is picking up validation cues from other HTML attributes or labels associated with form fields.
To address this issue, you could consider the following steps:
Check Screen Reader Behavior: Test the form with different screen readers and browser combinations to ensure the issue is consistent across different setups. This will help you confirm whether it's a widespread problem or specific to certain configurations.
Aria- Attributes:* Utilize ARIA (Accessible Rich Internet Applications) attributes to provide more explicit instructions to screen readers. For example, you can use aria-invalid to indicate whether a field's value is valid or not. Make sure that these attributes are consistent with the 'novalidate' attribute.
Validation Messages: Ensure that any validation messages associated with form fields are appropriately marked up using ARIA roles and attributes. This will help screen readers identify and announce the error messages accurately.
Testing Tools: Make use of browser developer tools and screen reader testing tools to simulate the experience of users with disabilities. This can help you identify what the screen reader is picking up and how it's interpreting the form's behavior.
User Testing: Engage with users who rely on screen readers to navigate the web. Their firsthand feedback can provide insights into how your form is being perceived and used.
Consult Accessibility Guidelines: Refer to the Web Content Accessibility Guidelines (WCAG) to ensure that your form conforms to accessibility standards. These guidelines provide detailed recommendations for making web content usable for people with disabilities.
Consider Expert Help: If the issue persists, consider reaching out to experts in web accessibility or conducting an accessibility audit to identify any underlying problems in your form's markup.
Remember that web accessibility is an ongoing process, and it's important to continuously test and refine your forms to ensure they are usable by everyone, including those who rely on screen readers.
https://0123fmovies.com/
Comment 7•2 years ago
|
||
Removing an access keyword, since the bug is already in the Disability Access APIs component and has severity set.
Description
•