-
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
aria-activedescendant and focus events #1081
Comments
I think it should be clear to every developer that
I don't think it's a good idea to change that. So far, all ARIA attributes and roles have no effect on the operation and output of web content as long as no AT is used. If aria-activedescendant would be able to trigger events on the referenced element, this would also affect keyboard users without AT. This would obsolete the current separation (between HTML, CSS and JS for users without AT and in addition ARIA for users with AT), which would cause a lot of confusion. |
Thanks for the comment, @JAWS-test. It helped me realize that I was not unclear in my OP. I'm aware of the current status but wrote it as if I wasn't; my apologies for that. I raised the issue primarily to talk about future improvements in this area but perhaps this was a poor attempt to do so. This area has improved a lot in the past and other specs continue to improve authoring as well, so I see a lot of opportunity to simplify authoring and reduce potential issues. |
Hi Peter, there's no need to apologize at all. It's just my personal opinion that it's better that ARIA shouldn't change operation and visual output without AT. But maybe in the future ARIA will not only be for AT, but can influence the look and handling of HTML like CSS and JS. This is a general discussion, which of course is especially useful for aria-activedescendant, because it would make a lot easier for the developers (besides events, also focus visibility and display in the visible area). Nevertheless, I'm sceptical whether it makes sense to follow such a path... |
Not sure how well this is covered by core-aam but doesn't this kind of detail belong there rather than the ARIA spec? |
@jnurthen commented:
No, this is squarely part of ARIA, and currently covered by 2.3.2 Information for User Agents. I agree with @JAWS-test that we should not change the existing contract between ARIA and browsers. In ARIA 2.0, when we consider control patterns, we might be able to negotiate a new contract that lets browsers do more lifting for widgets. We could do it in a way that would not impact any existing code by allowing authors to request that browsers provide keyboard and focus behaviors. This would give authors choices: 1) provide all the behaviors in JS or 2) request the browser provide some of the behaviors via specific attribute values. |
More a note for myself: #1051 (currently) contains several relevant changes to this issue. |
In case it's helpful, the ARIA spec does have a subsection on Information for User Agents to support |
Closing this as part of #2151. |
This is possibly more appropriate for https://github.com/w3c/uievents but that spec seems to currently focus on cataloguing UA behavior (cf. w3c/uievents#242 (comment)) so I'm hoping to start on this end (where it might just end).
The ARIA spec https://w3c.github.io/aria/#aria-activedescendant doesn't actually say anything about User Agent behavior but it seems to imply that aria-activedescendant should put the target in focus; it's specifically a technique to reduce the need of having to "manually" move focus (e.g., setting tabindex).
UI Events Spec https://w3c.github.io/uievents/#event-type-focus says a user agent "MUST dispatch this event when an event target receives focus".
From a quick test (Firefox, Chrome), focus events are not triggered if the element becomes the active descendant. I'm wondering if this is intentional or something that the group could work to improve long term.
The text was updated successfully, but these errors were encountered: