-
Notifications
You must be signed in to change notification settings - Fork 264
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
autocomplete
attribute for select element (Success Criterion 1.3.5 "Identify Input Purpose")
#4162
Comments
SC 1.3.5 is not concerned with autofill. The intention is that user agents can identify the purpose of an input and display an appropriate icon or some other means of identification in addition to the text label. As such, it’s ok to use the “autocomplete” attribute on the <select> element. It is explicitly permitted in the HTML5 specification.
https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element
Steve Green
Managing Director
Test Partners Ltd
|
Thank you for your comment, Steve. Yes, I understand the key intention of this SC 1.3.5 is that user agents can identify the purpose of an input and display an appropriate icon or other means of identification. As you mentioned above, HTML Living Standard says that the When conductiong WCAG audit, and encountered the |
1.3.5 is a bit ... vague (nothing new when it comes to WCAG) here. in theory, (speaking of vague, the actual HTML standard is also eminently confusing/confused when it talks about |
in the table it says "TEXT" (not "TEXT input") and this refers to: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#control-group-text and there you find: select |
Thank you @patrickhlauke |
Thank you @JAWS-test
Oh my goodness. I overlooked it completely. Thank you so much for pointing it out. |
Draft working group response The working group will add some information to the understanding document or to the existing technique (or both) to clarify this. |
Thank you for sharing the draft working group response. I appreciate everyone taking time for my question. |
This is just a question regarding the interpretation of WCAG Success Criterion "1.3.5 Identify Input Purpose".
If the prefecture input is implemented using
<select>
element, instead of<input type="text">
, for a user's postal address, is the lack ofautocomplete
attribute is considered a failure of this success criterion? Or should we implement the<select>
element withautocomplete
attribute like this?According to HTML Living Standard, most of the "autofill field name" including "address-level" seems to be appropriate only for TEXT control, thus inappropriate for
<select>
element.https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-field
Based on this, I would think that the lack of
autocomplete
in the<select>
element would not be considered a failure of this success criterion. Am I correct?Or is it necessary to include
autocomplete
attribute in such<select>
element, in the hope for future that assistive technologies will use theautocomplete
value as a cue to present a symbol for users?I would appreciate it if you could let me know your views on this.
The text was updated successfully, but these errors were encountered: