-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Naming Form Controls with the Label Element recommends incorrect technique #2870
Comments
good lord, well spotted. that sounds like advice from some long-forgotten past (and then it turns out this was all because of a bug in Netscape Navigator 4.x on OS 9, or something) |
Explicit `<label>`s are preferred over implicit ones, as they have better AT support. Closes w3c#2870
Thanks much @dotjay and @patrickhlauke for your comments and for opening a PR on this. @mcking65 Could we discuss this in the next APG meeting? |
…when using 'label' element (pull #2882) Resolves issue #2870 by revising the content of the section describing usage of the HTML label element. Revisions include: 1. Move description of the `for` attribute technique before the description of the encapsulation technique. 2. Note that using the `for` attribute is known as 'explicit association' and using encapsulation is known as 'implicit association'. 3. State that explicit association has better AT/browser support than implicit association. --------- Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
PR #2882, which resolves this issue is merged. The change is scheduled for publication tomorrow, December 19. Thank you @dotjay and @patrickhlauke for raising the issue and shaping the resolution. |
On the Providing Accessible Names and Descriptions practices page under the heading Naming Form Controls with the Label Element, the text describes two techniques, commonly known to accessibility professionals as implicit and explicit labeling.
Implicit:
Explicit:
The guidance goes on to state the following, which I believe to be incorrect:
However, explicit labeling using
for
andid
attributes has long been established as the preferable technique due to better support in browsers and assistive technology software, which is echoed by the WAI's own tutorial on Labeling Controls (with my emphasis):This is backed up by experts reporting issues with voice control software like Dragon Naturally Speaking not working with implicit labeling techniques, and more recent testing with screen readers.
I suggest that the advice on the Providing Accessible Names and Descriptions page be reworded to something like:
The text was updated successfully, but these errors were encountered: