diff options
author | timmywil <timmywillisn@gmail.com> | 2012-07-02 21:35:00 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2012-07-02 21:35:00 -0400 |
commit | b414fe1b0150db68e44f2be3c0b2b265b5dd0bf5 (patch) | |
tree | 19dfeb96806426dabde86d726fcde0676f7f64a4 /src/attributes.js | |
parent | 6e36cbf90e0067dfc638ac8700f6fcbc7927e17f (diff) | |
download | jquery-b414fe1b0150db68e44f2be3c0b2b265b5dd0bf5.tar.gz jquery-b414fe1b0150db68e44f2be3c0b2b265b5dd0bf5.zip |
Use value rather than nodeValue in attributes (it's the string version). Update sizzle: default attribute handling.
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/attributes.js b/src/attributes.js index 6ec1c7154..858002c0f 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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 + "" ); } }; |