From f578e0f99748ec5ae84d750f0922957e5fea25cb Mon Sep 17 00:00:00 2001 From: timmywil Date: Sun, 13 Mar 2011 16:29:33 -0400 Subject: [PATCH] Don't use extend when setting the action attrHook for IE6/7 --- src/attributes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/attributes.js b/src/attributes.js index 0a39cba8d..37a6c1e59 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -401,7 +401,7 @@ if ( !jQuery.support.getSetAttribute ) { }); // Action attribute in ie6/7 returns form objects - jQuery.attrHooks.action = jQuery.extend( jQuery.attrHooks.action, { + jQuery.attrHooks.action = { get: function( elem ) { return elem.nodeName === "FORM" ? elem.getAttributeNode("action").nodeValue : elem.getAttribute("action"); }, @@ -409,7 +409,7 @@ if ( !jQuery.support.getSetAttribute ) { elem.nodeName === "FORM" ? elem.getAttributeNode("action").nodeValue = value : elem.setAttribute("action", value); return value; } - }); + }; } // Remove certain attrs if set to false -- 2.39.5