node-aria-debug.js revision 905ef20351c36a61911c44e57f2928fa74f642f0
YUI.add('node-aria', function(Y) {
var _addDOMAttr = Y.Node.prototype._addDOMAttr;
Y.Node.prototype._addDOMAttr = function(name) {
if (/^(?:role$|aria-)/.test(name)) {
this.addAttr(name, {
getter: function() {
return Y.Node.getDOMNode(this).getAttribute(name, 2);
},
setter: function(val) {
Y.Node.getDOMNode(this).setAttribute(name, val);
return val;
}
});
} else {
_addDOMAttr.call(this, name);
}
};
}, '@VERSION@' ,{requires:['node-base']});