Bug 174770

Summary: AX: Required field labels aren't announced on validation failure
Product: WebKit Reporter: Matt Stow <matt>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Major CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac   
OS: macOS 10.12.4   
Attachments:
Description Flags
Demo showing VoiceOver not announcing which fields have failed validation none

Description Matt Stow 2017-07-23 20:34:15 PDT
Created attachment 316256 [details]
Demo showing VoiceOver not announcing which fields have failed validation

When using the `required` attribute on form fields, when the focus is taken to the first field with errors, its label is not announced by VoiceOver; it just tells you to "Fill out this field", which is essentially useless for a blind user.

In this test case, https://jsfiddle.net/8c9qge88/, it happens when triggering the button with Enter, Space and VO Space on the button. On my more complex implementation in a WIP project, it always happens on Space, often happens on Enter and never happens on VO Space :-\
Comment 1 Radar WebKit Bug Importer 2017-07-23 20:34:42 PDT
<rdar://problem/33480505>
Comment 2 Matt Stow 2017-07-23 21:23:58 PDT
Also reproduced this behavior in Safari 10+