mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Use value rather than nodeValue in attributes (it's the string version). Update sizzle: default attribute handling.
This commit is contained in:
parent
6e36cbf90e
commit
b414fe1b01
@ -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
|
Loading…
Reference in New Issue
Block a user