From 18b1cf2942cc082c1c97a2ac9bc33ad77f42d775 Mon Sep 17 00:00:00 2001 From: timmywil Date: Sat, 7 May 2011 22:01:10 -0400 Subject: Remove value check from formHook; other elements can use value hook --- src/attributes.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/attributes.js') diff --git a/src/attributes.js b/src/attributes.js index 4d1644706..c207a001c 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -495,9 +495,6 @@ if ( !jQuery.support.getSetAttribute ) { formHook = jQuery.attrHooks.name = jQuery.attrHooks.value = jQuery.valHooks.button = { get: function( elem, name ) { var ret; - if ( name === "value" && !jQuery.nodeName( elem, "button" ) ) { - return elem.getAttribute( name ); - } ret = elem.getAttributeNode( name ); // Return undefined if nodeValue is empty string return ret && ret.nodeValue !== "" ? -- cgit v1.2.3