diff options
author | timmywil <timmywillisn@gmail.com> | 2011-10-22 16:03:57 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-10-22 16:03:57 -0400 |
commit | c51b29477e2884fc28cfe4de5b64308177678262 (patch) | |
tree | 04d4245f38e0fd1355a99d9a4f5da6a9919813a1 /src/attributes.js | |
parent | f2c1d2e016018ba14cd3f1612f9a1803d5e1709e (diff) | |
download | jquery-c51b29477e2884fc28cfe4de5b64308177678262.tar.gz jquery-c51b29477e2884fc28cfe4de5b64308177678262.zip |
Support setting both the enctype attribute and property (encoding in IE6/7). Fixes #6743.
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js index 6dc39b97c..58549ec42 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -316,7 +316,8 @@ jQuery.extend({ notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); - // Normalize the name if needed + // All attributes are lowercase + // Grab necessary hook if one is defined if ( notxml ) { name = name.toLowerCase(); hooks = jQuery.attrHooks[ name ] || (rboolean.test( name ) ? boolHook : nodeHook); @@ -619,6 +620,11 @@ if ( !jQuery.support.optSelected ) { }); } +// IE6/7 call enctype encoding +if ( !jQuery.support.enctype ) { + jQuery.propFix.enctype = "encoding"; +} + // Radios and checkboxes getter/setter if ( !jQuery.support.checkOn ) { jQuery.each([ "radio", "checkbox" ], function() { |