diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-01-23 12:23:46 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-01-23 12:23:46 -0500 |
commit | caac041fcc31724b8b579939e8053966559483ca (patch) | |
tree | 02825910087f8ed146b4d1a180aa3c4cd45d66ff /test | |
parent | b326225d9087ee8c5648ace3cf88feab0330353d (diff) | |
download | jquery-caac041fcc31724b8b579939e8053966559483ca.tar.gz jquery-caac041fcc31724b8b579939e8053966559483ca.zip |
Ignore file inputs when serializing forms. File input serialization is handled by plugins. Fixes #13306.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/serialize.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/serialize.js b/test/unit/serialize.js index ab5d1c427..eff2a0086 100644 --- a/test/unit/serialize.js +++ b/test/unit/serialize.js @@ -112,8 +112,9 @@ test("serialize()", function() { // Add html5 elements only for serialize because selector can't yet find them on non-html5 browsers jQuery("#search").after( - "<input type='email' id='html5email' name='email' value='dave@jquery.com' />"+ - "<input type='number' id='html5number' name='number' value='43' />" + "<input type='email' id='html5email' name='email' value='dave@jquery.com' />" + + "<input type='number' id='html5number' name='number' value='43' />" + + "<input type='file' name='fileupload' />" ); equal( jQuery("#form").serialize(), |