Ticket #3562: removeAttr.patch
| File removeAttr.patch, 1.2 KB (added by scott.gonzalez, 22 months ago) |
|---|
-
Users/sgonzale/Documents/workspace/jQuery
111 111 // tweak $.attr for FF2 implementation 112 112 if (isFF2) { 113 113 var attr = $.attr, 114 removeAttr = $.fn.removeAttr, 115 ariaNS = "http://www.w3.org/2005/07/aaa", 114 116 ariaState = /^aria-/, 115 117 ariaRole = /^wairole:/; 116 118 … … 123 125 : (attr.apply(this, arguments) || "").replace(ariaRole, "")) 124 126 : (ariaState.test(name) 125 127 ? (set 126 ? elem.setAttributeNS( "http://www.w3.org/2005/07/aaa",128 ? elem.setAttributeNS(ariaNS, 127 129 name.replace(ariaState, "aaa:"), value) 128 130 : attr.call(this, elem, name.replace(ariaState, "aaa:"))) 129 131 : attr.apply(this, arguments))); … … 128 130 : attr.call(this, elem, name.replace(ariaState, "aaa:"))) 129 131 : attr.apply(this, arguments))); 130 132 }; 133 134 $.fn.removeAttr = function(name) { 135 return (ariaState.test(name) 136 ? this.each(function() { 137 this.removeAttributeNS(ariaNS, name.replace(ariaState, "aaa:")); 138 }) : removeAttr.call(this, name)); 139 }; 131 140 } 132 141 133 142 //jQuery plugins
![(please configure the [header_logo] section in trac.ini)](/chrome/site/nologo.gif)