aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/attributes/attr.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/attributes/attr.js b/src/attributes/attr.js
index 5a911c7d0..426a8e524 100644
--- a/src/attributes/attr.js
+++ b/src/attributes/attr.js
@@ -108,16 +108,9 @@ jQuery.each( (
).split( " " ), function( _i, name ) {
jQuery.attrHooks[ name ] = {
get: function( elem ) {
- var ret,
- isXML = jQuery.isXMLDoc( elem ),
- lowercaseName = name.toLowerCase();
-
- if ( !isXML ) {
- ret = elem.getAttribute( name ) != null ?
- lowercaseName :
- null;
- }
- return ret;
+ return elem.getAttribute( name ) != null ?
+ name.toLowerCase() :
+ null;
},
set: function( elem, value, name ) {