Last modified: 2013-08-09 18:12:54 UTC
We need a jquery.accessibility library to handle accessibility attributes of actionable elements, like 'tabindex' and 'role', with a single line of code. It's non-trivial because, quoting TheDJ from change 78071: > Role overrides implicit role of an element. Since here we don't know > the original element type that we are overriding, we shouldn't just > set the role. It might break th, li etc items. > In the long term, we should add a jquery.accessibility lib that can > take into account things like this, without having to write a ton of > code. Reference: * http://www.w3.org/TR/xhtml-role/#s_role_module_attributes * http://www.w3.org/1999/xhtml/vocab/
Related: * https://gerrit.wikimedia.org/r/78071 * https://gerrit.wikimedia.org/r/78066