The default bug view has changed. See this FAQ.

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

RESOLVED FIXED in mozilla14

Status

()

Core
Disability Access APIs
P1
normal
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: MarcoZ, Assigned: hub)

Tracking

(Blocks: 1 bug)

Trunk
mozilla14
x86_64
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
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.
(Reporter)

Comment 1

5 years ago
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)

Updated

5 years ago
Assignee: nobody → hub
(Assignee)

Comment 2

5 years ago
Created attachment 614204 [details] [diff] [review]
Labels are groups, not text. r=
(Assignee)

Comment 3

5 years ago
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.
(Assignee)

Comment 4

5 years ago
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)

Updated

5 years ago
Attachment #614204 - Flags: review?(surkov.alexander) → review+
(Assignee)

Comment 5

5 years ago
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
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.