Last Comment Bug 720995 - [Mac] VoiceOver does not see form fields that are nested inside label elements
: [Mac] VoiceOver does not see form fields that are nested inside label elements
Product: Core
Classification: Components
Component: Disability Access APIs (show other bugs)
: Trunk
: x86_64 Mac OS X
: P1 normal (vote)
: mozilla14
Assigned To: Hubert Figuiere [:hub]
: alexander :surkov
Depends on:
Blocks: osxa11y
  Show dependency treegraph
Reported: 2012-01-25 05:53 PST by Marco Zehe (:MarcoZ)
Modified: 2012-04-12 10:20 PDT (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Labels are groups, not text. r= (2.63 KB, patch)
2012-04-11 15:48 PDT, Hubert Figuiere [:hub]
surkov.alexander: review+
Details | Diff | Splinter Review

Description Marco Zehe (:MarcoZ) 2012-01-25 05:53:07 PST
If a label wraps around  an input, VoiceOver does not see the form field in Firefox, only the label. In Safari, this works fine.


<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.
Comment 1 Marco Zehe (:MarcoZ) 2012-01-25 06:39:26 PST
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.
Comment 2 Hubert Figuiere [:hub] 2012-04-11 15:48:19 PDT
Created attachment 614204 [details] [diff] [review]
Labels are groups, not text. r=
Comment 3 Hubert Figuiere [:hub] 2012-04-11 15:49:15 PDT
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 4 Hubert Figuiere [:hub] 2012-04-11 17:32:03 PDT
Comment on attachment 614204 [details] [diff] [review]
Labels are groups, not text. r=

Let's put that one in. The other problem is separate.
Comment 6 :Ms2ger (⌚ UTC+1/+2) 2012-04-12 10:20:47 PDT

Note You need to log in before you can comment on or make changes to this bug.