-
Notifications
You must be signed in to change notification settings - Fork 120
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 adding more normative requirements for authors on the textbox role #1493
Comments
Since an HTML textbox cannot have child elements, I would have expected role=textbox to have "Children Presentational: True". Your example would then be nothing more than |
Adding verbiage to allow only presentational elements in textboxes w3c#1493
Fix for aria w3c#1493. Removed parenthetical examples of old web development techniques and replaced them with current examples.
Fix for w3c#1493. Updated examples to be more current.
Providing more current examples of presentational elements in textboxes for w3c#1493
The ARIA spec says the following for the
textbox
role:After that there is a (non-normative) note and the characteristics table. That's it. That suggests the following is, officially, a valid "simple text box":
Some observations:
I don't think that's a "simple text box"
contenteditable
isn't set but the default/implicit value ofaria-readonly
isfalse
. According to the ARIA spec's State and Property Attribute Processing:So we have to trust that the author is using some non-contenteditable means to make that
div
editable.aria-readonly
isfalse
as described above.aria-disabled
is alsofalse
for the same reason, but thistextbox
is also not focusable, which brings me to the next item:Should this really be exposed as a textbox to ATs?
I'm currently working on fixing a Chromium bug related to authoring like the above which breaks the screen-reader user experience because those focusable children get pruned from the accessibility tree unless
contenteditable
is set on thediv
with thetextbox
role. Why are they getting pruned? Simple text boxes don't have children. (Right??)Fixing the not-in-the-accessibility-tree bug is not hard. But I think authors need to be stopped from doing the above. And depending on the normative statements we add for authors, we might want to consider handling-author-errors content so that user agents can provide a more consistent implementation and user experience given such authoring.
The text was updated successfully, but these errors were encountered: