-
Notifications
You must be signed in to change notification settings - Fork 59
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
labelledBy/describedBy seems bonkers #28
Comments
This comment is taken out of appropriate context. If the label is explicitly set, these other attributes are irrelevant. Otherwise they mirror the content attr on real DOM nodes, but would need to be settable attrs on virtual nodes. |
The HTML label element and aria-labelledby are both great high-level abstractions that work well most of the time. When they break, though, it can be frustrating for developers. Right now if you associate a label element with a control, there are at least three side effects:
The problem is, what if that isn't what you want? What if you want #1 and #3, but you don't want #2 because the label is an icon and the control needs accessible text? The idea was to decouple these concepts and let the author set the accessible label of a control independently from establishing that relationship between an object and the object that labels it. |
I don't quite understand. In addition to the sentence I quoted, the preceding paragraph states that these attributes are "informational only". I can also find no normative description of how they impact the processing model. It seems pretty clear these attributes do nothing, per spec.
These seem like good goals. In particular, I get the impression that these attributes were meant to help accomplish #3, or maybe #2. But per the spec as it stands, they do nothing, and so do not help with these goals. |
What I think isn't clear is that virtually all of these accessibility attributes get communicated directly to the assistive technology. What it chooses to do with that is up to it. The browser doesn't "do" anything else with this information other than communicate it. I'll try to clarify that and give some examples of the types of things assistive technologies might do with these relationships. In some cases we should be able to refer directly to the ARIA spec, but in the case of aria-labelledby it might be less clear and perhaps we should clarify it. |
I think it's important to normatively state that these are delivered to the accessibility technology, then, and to remove all indications in the spec that these are non-normative or don't affect the processing model. |
Why even include these attributes then? At the very least make them not settable.
The text was updated successfully, but these errors were encountered: