Add ARIA role-expanded issue
So the issue is with the aria-expanded where it should say true when expanded and false afterwards.but when it is expanded it will say “true” and then after its being closed it would still be “true”. suppose to be false :( help
what should i do?
any issues with this?
you need to be calling that more than once, as in every expand/collapse.
if you move it to callbacks, like keydown, it should fire automatically.
personally, i would put the update code in a function and name it something like updateAria(). you can then easily call updateAria() from anywhere, after something changes, to apply the correct attributes to the new situation.
you might find it easier to make your own "plugin" that does everything you need in one call, replacing the usual show/hide methods.
you will have to customize the actual aria code to hit the right child/parent/etc, but this "plugin" approach itself is a real timesaver long-term.
|All times are GMT +1. The time now is 02:30 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.