-
Notifications
You must be signed in to change notification settings - Fork 256
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
SC 1.3.5 fields with correct autocomplete inside form with autocomplete="off" #1197
Comments
I would say yes, this conforms. The spec doesn't explicitly forbid this type of use, except to suggest that the browser is being informed that it isn't expected to autofill:
The Mozilla docs make it clear that modern browsers are selecting to not honor the "off" options for autocomplete, so from an accessibility perspective we can still take advantage of that. This is subject to accessibility-supported concerns, so if browsers all honored the off setting and there was no way for plug-ins or AT to take advantage of the family-name information then the answer would be that this doesn't conform. |
@awkawk mozilla doc is only about the login/password input on my case it's more a generic question for any fields that need autocomplete regarding 1.3.5. So the question is more to know if removing native / plugin autofill behaviours will be considered as a failure with 1.3.5. If I only read the SC 1.3.5 I would personally say no as purpose of fields are correctly identified and can be programmatically identified regardless there is or not autofill capability. |
the point of the SC isn't whether or not the browser actually autocompletes or not. it's whether or not fields are programmatically/explicitly identified. the fact that long story short yes, i'd say that this passes. |
exactly, it's not about autofill, but if it can be programmatically determined, and it can. |
I would be inclined to allow autocomplete off on the form and autocomplete on the inner inputs to provide this information and block browsers from autofill. This would help organizations that have some concern about using this attribute but want to meet WCAG. |
Hi, What @goetsu points out in his remark is that the presence of an autocomplete="off" attribute (in the form element) inhibits the autocomplete values associated with the form controls. With regard to the first benefit listed in SC 1.3.5, can we simply say that "People with language and memory related disabilities or disabilities that affects executive function and decision-making benefit from the browser auto-filling personal information" even if autocomplete is not effectively managed at the form level? So, shouldn't the H98 technique then be completed by a third test condition saying that the parent form should not contain an autocomplete="off" attribute (except for security concerns)? The MDN article already pointed out by @awkawk says in its introduction: "It is important to know that if you turn off autocomplete, you are breaking the rule 1.3.5: Identify Input Purpose in WCAG 2.1. If you are making a website that should follow WCAG, you should use autocomplete with autofill." This point of view is worth to be considered. |
Ha! I missed that part. But, I also don't agree with it... :) |
We seems to be heading towards:
Has anyone checked that the browser still associates the autocomplete value on the field if it is "off" on the form? |
i've edited the MDN reference to the following:
|
as an aside, note that Firefox devtools seem to never correctly expose the autocomplete property (even on a form without |
Proposed Working Group Reply (lifted from @patrickhlauke's comment): Thank you for raising this issue. |
Agreed response from the group: |
Hi,
I'm wondering if such case will be considered compliant with Sc 1.3.5
The text was updated successfully, but these errors were encountered: