mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
removing Firefox 2 AIRA extras, FF2 isn't usable in that regard anyway
This commit is contained in:
parent
713608cd42
commit
0923066abb
31
ui/jquery.ui.core.js
vendored
31
ui/jquery.ui.core.js
vendored
@ -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
|
//jQuery plugins
|
||||||
$.fn.extend({
|
$.fn.extend({
|
||||||
_focus: $.fn.focus,
|
_focus: $.fn.focus,
|
||||||
|
Loading…
Reference in New Issue
Block a user