From b414fe1b0150db68e44f2be3c0b2b265b5dd0bf5 Mon Sep 17 00:00:00 2001 From: timmywil Date: Mon, 2 Jul 2012 21:35:00 -0400 Subject: [PATCH] Use value rather than nodeValue in attributes (it's the string version). Update sizzle: default attribute handling. --- src/attributes.js | 6 +++--- src/sizzle | 2 +- 2 files changed, 4 insertions(+), 4 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 + "" ); } }; diff --git a/src/sizzle b/src/sizzle index d8f497c8f..a7b38ea4a 160000 --- a/src/sizzle +++ b/src/sizzle @@ -1 +1 @@ -Subproject commit d8f497c8f3083951813f823796109741aae9d77e +Subproject commit a7b38ea4aa144cb3cac2991a035f8c99a38fc108