WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: edit field max length


From: Steve Green
Date: Feb 18, 2020 5:35PM

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.

Steve Green
Managing Director
Test Partners Ltd

-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of Don Raikes
Sent: 18 February 2020 20:09
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: [WebAIM] edit field max length


I was having a discussion with a colleague about this and we didn't have a good answer.

Suppose there is an edit field in a web form. The field has a maximum length of 20.

Should there be some indication that the user has reached the maximum length, or that at least there is a maximum length?

If some indication should be provided, what is the best mechanism for the nnotification, and which WCAG 2.1 criteria does it reference?

Thanks, Donald

"As a leader, to be successful, is to help the people around you to be successful." - Kent Boucher

Accessibility, like security, is better when built-in from the beginning rather than bolted on at the end.

Donald Raikes | Accessibility Specialist
Mobile: HYPERLINK "tel:+15202717608"+15202717608 | VOIP: HYPERLINK "tel:+15205744033"+15205744033 Oracle Accessibility Program Office
| Tucson, Arizona


Oracle is committed to developing practices and products that help protect the environment