WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Name, Role, Value and Labels or Instructions techniques...

for

From: Patrick H. Lauke
Date: Mar 31, 2015 6:27AM


On 31/03/2015 13:22, Ryan E. Benson wrote:
>> We are not saying that @title is equivalent to label, we are saying that
> @title provides a programmatically associated name that gets exposed to AT
> in the same way that label does.
>
> But it is still considered equivalent, although not the preferred method. I
> point to the W3C doc and list provided earlier in this thread.

"Preferred" is irrelevant, in my view. What counts with success criteria
is: does it pass the criterion or doesn't it pass the criterion.

>> It passes SC 4.1.2, which is specifically concerned about programmatically
> exposed name, role and value.
>
> So with the new document, 4.1.2 and 3.3.2 success criterion, in a way,
> contradict each other. Part of me ask why list something that can be done.
> but really should not be done?

They are not contradictory. First of all, they refer to different
aspects (one is concerned about the programmatically associated
name,role,state, the other about having clear labelling). And, as noted,
they are not contradictory because the following passes both 4.1.2 and
3.3.2 (you can then argue about whether one is "preferred" or "best
practice", but that argument is irrelevant in determining whether
something passes or fails SCs in my opinion):

<span>Username</span>
<input type="text" title="Username" ... >

(the @title satisfies 4.1.2, the preceding visible text in the <span>
satisfies 3.3.2)

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