Skip to content
Permalink
Browse files

Don't use extend when setting the action attrHook for IE6/7

  • Loading branch information
timmywil
timmywil committed Mar 13, 2011
1 parent 77c559c commit f578e0f99748ec5ae84d750f0922957e5fea25cb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/attributes.js
@@ -401,15 +401,15 @@ 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");
},
set: function( elem, value ) {
elem.nodeName === "FORM" ? elem.getAttributeNode("action").nodeValue = value : elem.setAttribute("action", value);
return value;
}
});
};
}

// Remove certain attrs if set to false

0 comments on commit f578e0f

Please sign in to comment.
You can’t perform that action at this time.