WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: WCAG2: Form fields and labels

for

From: Patrick H. Lauke
Date: Feb 5, 2015 4:31AM


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