Skip to content
Permalink
Browse files

Use value rather than nodeValue in attributes (it's the string versio…

…n). Update sizzle: default attribute handling.
  • Loading branch information
timmywil committed Jul 3, 2012
1 parent 6e36cbf commit b414fe1b0150db68e44f2be3c0b2b265b5dd0bf5
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/attributes.js
  2. +1 −1 src/sizzle
@@ -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 + "" );
}
};

Submodule sizzle updated 2 files
+8 −4 sizzle.js
+15 −12 test/unit/selector.js

0 comments on commit b414fe1

Please sign in to comment.
You can’t perform that action at this time.