WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: WCAG2: Form fields and labels

for

From: Birkir R. Gunnarsson
Date: Feb 5, 2015 5:45AM


I have always called those under 1.3.1 .. 4.1.1 is also technically
valid I think, it wouldn't validate, but 1.3.1 is more specific re the
authors intension.
And, yes, either you type correct ID or not, trying to type the
correct ID .. well, hope he fixes it without any grief.

On 2/5/15, Patrick H. Lauke < <EMAIL REMOVED> > wrote:
> On 05/02/2015 11:24, Lynn Holdsworth wrote:
>> Hi all,
>>
>> If a page contains a form field with a label that the developer has
>> attempted to associate but has typed the field's ID incorrectly inside
>> the FOR attribute, hence the association doesn't work, can I fail this
>> under checkpoint 4.1.2 (name, role, value)?
>
> Yes...regardless of good intention (maybe just a typo?), the end effect
> is that the label is not associated correctly, so the form field lacks a
> programmatically associated name.
>
> "Do, or do not. There is no try" or something...
>
> P
> --
> Patrick H. Lauke
>
> www.splintered.co.uk | https://github.com/patrickhlauke
> http://flickr.com/photos/redux/ | http://redux.deviantart.com
> twitter: @patrick_h_lauke | skype: patrick_h_lauke
> > > >


--
Work hard. Have fun. Make history.