diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/attributes.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/attributes.js b/src/attributes.js index 794b98d75..d163469c7 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -435,6 +435,9 @@ if ( !jQuery.support.getSetAttribute ) { // And the name attribute formHook = jQuery.attrHooks.name = jQuery.attrHooks.value = jQuery.valHooks.button = { get: function( elem, name ) { + if ( name === "value" && !jQuery.nodeName( elem, "button" ) ) { + return elem.getAttribute( name ); + } var ret = elem.getAttributeNode( name ); // Return undefined if not specified instead of empty string return ret && ret.specified ? |