mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Ignore file inputs when serializing forms. File input serialization is handled by plugins. Fixes #13306.
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user