Use value rather than nodeValue in attributes (it's the string version). Update sizzle: default attribute handling.

This commit is contained in:
timmywil 2012-07-02 21:35:00 -04:00
parent 6e36cbf90e
commit b414fe1b01
2 changed files with 4 additions and 4 deletions

View File

@ -536,8 +536,8 @@ if ( !getSetAttribute ) {
get: function( elem, name ) {
var ret;
ret = elem.getAttributeNode( name );
return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
ret.nodeValue :
return ret && ( fixSpecified[ name ] ? ret.value !== "" : ret.specified ) ?
ret.value :
undefined;
},
set: function( elem, value, name ) {
@ -547,7 +547,7 @@ if ( !getSetAttribute ) {
ret = document.createAttribute( name );
elem.setAttributeNode( ret );
}
return ( ret.nodeValue = value + "" );
return ( ret.value = value + "" );
}
};

@ -1 +1 @@
Subproject commit d8f497c8f3083951813f823796109741aae9d77e
Subproject commit a7b38ea4aa144cb3cac2991a035f8c99a38fc108