johndyer/mediaelement — pull request #361 by tantalic (2012-01-16 21:03:15+00:00)
Title: Add fake DOM attribute methods to mejs.PluginMediaElement

This pull request adds fake hasAttribute(), removeAttribute(), getAttribute() and setAttribute() methods to the plugin media element. Initial values are set from attributes in the HTML media element.

This functionality is helpful to take advantage of global HTML5 attributes such as title (http://www.w3.org/TR/html5/elements.html#the-title-attribute) and custom data attributes (http://www.w3.org/TR/html5/elements.html#embedding-custom-non-visible-data-with-the-data-attributes).