WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: edit field max length


From: Patrick H. Lauke
Date: Feb 18, 2020 5:50PM

On 19/02/2020 00:35, Steve Green wrote:
> I don't believe there is anything in WCAG that requires the author to generate a notification. The maximum length is conveyed programmatically as long as you use the "maxlength" attribute (as opposed to JavaScript), so it's the user agent's responsibility to generate a notification if one is needed.

However, for the benefit of all users, it would still be good if the
fact that a field is limited to a particular maximum length were
conveyed as part of the label or appropriately associated instructions
(in light of WCAG 2.1 3.3.2 Labels or Instructions
... though it's subjective/debatable if NOT providing this information
is really a hard failure or more of a best practice, as the SC itself is
slightly subjective in its interpretation).

Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke