-
Notifications
You must be signed in to change notification settings - Fork 125
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
Consider creation of a fieldsize/maxlength property #1119
Comments
@jnurthen This came up today internally. What's the timeline for 1.4? |
We are seeing this used more and more. The current guidance is to be exposing character count information through live regions which is an oversized hammer. This seems easily mapped into platform APIs along with the current count. This information would allow screen readers to expose the information best for their users. I have discussed with NV Access and Vispero and they are onboard with mapping these to existing IA2/UIA properties. |
The UIA mapping would be the The IA2 mapping appears to be the ATK looks like [Edited by James] I found |
@smhigley The ATK/AT-SPI2 value interface is intended for numeric ranges (progress bars, spin buttons, sliders, etc., etc.). For instance, in the case of a spin button that lets you select a numeric month, the range is 1 (min) - 12 (max). The maxlength would be 2. (Right?) I'm afraid that for specifying the maximum number of characters which can be input in a text input, there's not any good API for that. So the mapping should be.... wait for it.... yet another object attribute. 😀 Thanks for checking and please let me know if you have any questions. |
Discussion topics/summary: https://gist.github.com/smhigley/45783c28b47ef46818a4aaed3879528f |
Plan going forward:
related: VO bonking bugzilla issue: https://bugs.webkit.org/show_bug.cgi?id=271831 |
Minutes from today https://www.w3.org/2024/03/28-aria-dive-minutes.html |
a topic that came up today is supporting instances of where a text field needs to convey the max length, but also might allow people to type over that length (e.g., twitter allows one to type whatever they want, but if you are beyond the max length then the tweet wont be allowed to publish) |
I found out that JAWS already supports this on input fields via the HTML maxlength attribute. However, it's also useful on a contenteditable field. If browsers map aria-maxlength to a fake "maxlength" DOM attribute via ISimpleDOMNode, it should just work. JAWS is also planning to update to use a "maxlength" object attribute as well. Would be kind of nice to have immediate JAWS support for aria-maxlength if we do this. Is there any hunger for this? I know we said "no more new features" for now. |
HTML has a
maxlength
property on text and textarea. This property currently controls how many characters can be input. For instance, a PIN field limited to 4 characters.At the present time, this is not mapped on any platform, but I can imagine a screen reader user wanting to know that a field only accepts 4 characters. This information tends to be obvious to sighted users (input stops going into the field), but might not be to users who are blind.
The text was updated successfully, but these errors were encountered: