Closed Bug 720995 Opened 12 years ago Closed 12 years ago

[Mac] VoiceOver does not see form fields that are nested inside label elements

Categories

(Core :: Disability Access APIs, defect, P1)

x86_64
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: MarcoZ, Assigned: hub)

References

Details

Attachments

(1 file)

If a label wraps around  an input, VoiceOver does not see the form field in Firefox, only the label. In Safari, this works fine.

So:

<label for="username">User name:</label><input id="username" />

works, but

<label for="username">User name:<input id="username" /></label>

does not.
Same is true for input @type="checkbox".

A real-life example of this (legal) HTML construct can be seen on the WordPress admin login on each standard WordPress installation.
This is about missing out on actual interactive content elements. Not even tabbing to them yields any speech, because accessible objects don't seem to be created for these form fields that are wrapped in labels.
Priority: -- → P1
Assignee: nobody → hub
With this patch the form is accessible, but the text spoken is a bit too repetitive. There is probably more tweaking needed I'll add to a revised patch.
Comment on attachment 614204 [details] [diff] [review]
Labels are groups, not text. r=

Let's put that one in. The other problem is separate.
Attachment #614204 - Flags: review?(surkov.alexander)
Attachment #614204 - Flags: review?(surkov.alexander) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/68416d38fdd0
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla14
https://hg.mozilla.org/mozilla-central/rev/68416d38fdd0
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: