-
Notifications
You must be signed in to change notification settings - Fork 126
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
The Roles model introduces a potential timing problem #729
Comments
@dylanb Just digging through some old issues... Have you ever encountered this actually being a problem? If it is do you have any ideas as to how to resolve it? |
I have not but I wanted to raise it because it is a potential problem that the spec needs to address |
Any ideas how to resolve then? Otherwise I'm going to set a future milestone on it. |
Hi, "6. Platform accessibility APIs typically do not provide a vehicle to notify assistive technologies that a role has changed. Due to this and document caching, assistive technologies are unlikely to process a change in role attribute value. Authors who wish to change a role are advised by the WAI-ARIA specification to delete the associated element and its children and replace it with a new element having the appropriate role. If a role is changed, however, user agents SHOULD update the mapping in order to reflect the content in the DOM. Since assistive technologies will not know that the role has changed, user agents MAY address this error condition by treating it as removing a subtree item and inserting a new one as described in Changes to document content or node visibility." |
I think the best way to resolve it is to differentiate between changes from implicit roles and explicit roles. Implicit roles should be allowed to be changed at any point but then once changed, they become (obviously) explicit. Explicit roles should adhere to the current language (must replace the element to change the role). |
Unfortunately the processes involved are the same, so this couldn't work as just a spec change. This goes back to when I worked with Joseph, Rich, and Joanie on the UAIG, and it has to do with accessibility API events. I do see the value of doing this, but it would require all of the browsers to agree to implement a new event within their accessibility APIs, such as a role_changed event, which could then be used to identify where and when this occurred so that assistive technologies could then use this information to update their own displays as well. Without that, the functionality won't ever work reliably. James, do you want to put this on the agenda for the FTF when we all meet? The browser reps can weigh in then. |
See #986 |
Closed by #986 |
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27575
The text was updated successfully, but these errors were encountered: