aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-01-23 12:23:46 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-01-23 12:23:46 -0500
commitcaac041fcc31724b8b579939e8053966559483ca (patch)
tree02825910087f8ed146b4d1a180aa3c4cd45d66ff /src
parentb326225d9087ee8c5648ace3cf88feab0330353d (diff)
downloadjquery-caac041fcc31724b8b579939e8053966559483ca.tar.gz
jquery-caac041fcc31724b8b579939e8053966559483ca.zip
Ignore file inputs when serializing forms. File input serialization is handled by plugins. Fixes #13306.
Diffstat (limited to 'src')
-rw-r--r--src/serialize.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialize.js b/src/serialize.js
index 6e8353d59..65dee4005 100644
--- a/src/serialize.js
+++ b/src/serialize.js
@@ -1,7 +1,7 @@
var r20 = /%20/g,
rbracket = /\[\]$/,
rCRLF = /\r?\n/g,
- rsubmitterTypes = /^(?:submit|button|image|reset)$/i,
+ rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
rsubmittable = /^(?:input|select|textarea|keygen)/i;
jQuery.fn.extend({