Skip to content
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

Map maxlength #288

Open
aardrian opened this issue Apr 23, 2020 · 1 comment
Open

Map maxlength #288

aardrian opened this issue Apr 23, 2020 · 1 comment

Comments

@aardrian
Copy link

Currently the HTML maxlength attribute on a text input is not mapped to any accessibility APIs.

Visually this may not be an issue for a sighted user as they will see no more characters are accepted in a field.

But for a screen reader user, since this attribute is not exposed there is no way for a screen reader user to know there is a limit nor that they may have exceeded (short of exiting and re-entering the field to confirm the entered text).

While aria-valuemax is scoped to range/slider-ish controls, and while it speaks to a value rather than a character count, this may be a basis worth exploring. AT could recognize the context of a text field and evaluate it as a character limit. Hat tip to @stevefaulkner for the suggestion.

@aardrian
Copy link
Author

And I see there is discussion at the ARIA spec for a dedicated property (thanks @scottaohara):
w3c/aria#1119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants