-
Notifications
You must be signed in to change notification settings - Fork 15
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
modernizing aria.js #104
Comments
@jnurthen following our discussion, I was looking at ariaChild.js and from a rough comparison, they seem nearly identical. While aria.js seems to do extra stuff, I don't think the relevant if-checks would trigger in a child spec. The rest in differences looks like like two files going out of sync. Does that sounds about right? (If so then ideally we could refactor aria.js so that its parts are directly re-used in ariaChild.) |
A quick search confirms that ariaChild is really only used in dpub-aria, graphics-aria. So mostly we'd worry about dpub aria. |
Another point from the discussion with @jnurthen: re skipindex. A quick search only finds aria.js being used in the aria spec. The performance benefit of |
Some thoughts about testability. As James had said, running respec locally is probably the right direction. Here's what I've got so far
Now the diff has some expected differences
So diffing these seems at least initially a feasible step for testing changes to aria.js Next steps:
|
As suggested by James the other day, it should be sufficient to diff a local respec run before & after aria.js changes. It looks like there will always be differences in the |
Oh, and for |
As a way to explore what's going on, I've tried to extract/condense the pieces that generate roleInfo.js. I eventually ran into a roadblock. I couldn't figure out how some props are generated. I think it comes down to roletype's special treatment. Since this didn't work out, I think I'll try for a naive refactoring next. |
Besides #92 we have w3c/aria#1833 (which has fallen of the radar) and now w3c/aria#2073 suggesting changes in aria.js
Looking at the code, I wonder if there's interest in modernizing it a bit (and if there are any restrictions or W3C guidelines on this).
The text was updated successfully, but these errors were encountered: