Skip to content
Permalink
Browse files

removing Firefox 2 AIRA extras, FF2 isn't usable in that regard anyway

  • Loading branch information
jzaefferer committed Jan 27, 2010
1 parent 713608c commit 0923066abbceda1f23cefca26ae33046163c6298
Showing with 0 additions and 31 deletions.
  1. +0 −31 ui/jquery.ui.core.js
@@ -101,37 +101,6 @@ $.ui = {
}
};

// WAI-ARIA normalization
if (isFF2) {
var attr = $.attr,
removeAttr = $.fn.removeAttr,
ariaNS = "http://www.w3.org/2005/07/aaa",
ariaState = /^aria-/,
ariaRole = /^wairole:/;

$.attr = function(elem, name, value) {
var set = value !== undefined;

return (name == 'role'
? (set
? attr.call(this, elem, name, "wairole:" + value)
: (attr.apply(this, arguments) || "").replace(ariaRole, ""))
: (ariaState.test(name)
? (set
? elem.setAttributeNS(ariaNS,
name.replace(ariaState, "aaa:"), value)
: attr.call(this, elem, name.replace(ariaState, "aaa:")))
: attr.apply(this, arguments)));
};

$.fn.removeAttr = function(name) {
return (ariaState.test(name)
? this.each(function() {
this.removeAttributeNS(ariaNS, name.replace(ariaState, ""));
}) : removeAttr.call(this, name));
};
}

//jQuery plugins
$.fn.extend({
_focus: $.fn.focus,

0 comments on commit 0923066

Please sign in to comment.
You can’t perform that action at this time.