Bug Tracker

Opened 10 years ago

Closed 10 years ago

#5079 closed bug (worksforme)

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.

Change History (2)

comment:1 Changed 10 years ago by dmethvin

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

comment:2 Changed 10 years ago by dmethvin

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

Note: See TracTickets for help on using tickets.