|
|
@@ -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, |
|
|
|