zencoder/video-js — pull request #270 by gdkraus (2012-12-20 19:12:45+00:00)
Title: Allowing ARIA "role" attribute to be written to elements

In the current implementation, any time a "role" attribute is assigned to an element, it isn't actually getting written to the DOM. JavaScript seems to be doing some type of filtering to only allow valid attributes to be assigned to elements. Since ARIA attributes are not valid in the namespace for anything pre-HTML5, they are not getting written to the DOM. I took the existing workaround of looking for attributes with a "-" in it, presumably to look for attributes like "aria-valuenow", and just did a check to see if the "role" attribute is being added. In that case it uses the setAttribute function to add the role attribute. I believe "role" is the only ARIA associated attribute that is not prepend with "aria-".