Changeset 5683 for trunk/jquery/src
- Timestamp:
- 05/24/08 18:09:21 (8 months ago)
- Files:
-
- 1 modified
-
trunk/jquery/src/core.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/core.js
r5682 r5683 1061 1061 1062 1062 // If applicable, access the attribute via the DOM 0 way 1063 if ( n otxml && !special && name in elem) {1063 if ( name in elem && notxml && !special ) { 1064 1064 if ( set ){ 1065 1065 // We can't allow the type property to be changed (since it causes problems in IE) … … 1084 1084 elem.setAttribute( name, "" + value ); 1085 1085 1086 if ( msie && special && notxml ) 1087 return elem.getAttribute( name, 2 ); 1088 1089 return elem.getAttribute( name ); 1090 1086 var attr = msie && notxml && special 1087 // Some attributes require a special call on IE 1088 ? elem.getAttribute( name, 2 ) 1089 : elem.getAttribute( name ); 1090 1091 // Non-existent attributes return null, we normalize to undefined 1092 return attr === null ? undefined : attr; 1091 1093 } 1092 1094
