Skip to main content

Bug Tracker

Side navigation

#5079 closed bug (worksforme)

Opened August 19, 2009 10:25PM UTC

Closed June 12, 2010 07:07PM UTC

multiple="multiple" selects with no selections are not serialized using jQuery.serialize

Reported by: sharwood Owned by:
Priority: major Milestone: 1.4
Component: ajax Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

This problem seems to be in the serializeArray method. If no selection is made then it's value is null and ignored.

Attachments (0)
Change History (2)

Changed August 20, 2009 02:41AM UTC by dmethvin comment:1

What would be the desired behavior for that case? Do you have a standards reference for it?

Changed June 12, 2010 07:07PM UTC by dmethvin comment:2

component: unfiledajax
resolution: → worksforme
status: newclosed

The spec seems pretty clear that select multiple with no elements selected are not considered successful, and therefore should not be serialized.

http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2