aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2012-07-02 21:35:00 -0400
committertimmywil <timmywillisn@gmail.com>2012-07-02 21:35:00 -0400
commitb414fe1b0150db68e44f2be3c0b2b265b5dd0bf5 (patch)
tree19dfeb96806426dabde86d726fcde0676f7f64a4 /src/attributes.js
parent6e36cbf90e0067dfc638ac8700f6fcbc7927e17f (diff)
downloadjquery-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.js6
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 + "" );
}
};