Modify ↓
Ticket #3249 (closed enhancement: fixed)
Slight change to jQuery.fn.serializeArray()
| Reported by: | nathanhammond | Owned by: | flesler |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3 |
| Component: | ajax | Version: | 1.2.6 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I'm writing a plugin that would emulate the Form.elements array for any arbitrary element that is a descendant of a form. This new array would contain only those form elements that descend from it, in semantic order.
The benefits of this are right now being negated by one line in jQuery.fn.serializeArray() where it queries the nodeName to see if it is a form rather than querying the existence of the property.
I've attached a patch that would make that change.
Attachments
Change History
Changed 5 years ago by nathanhammond
-
attachment
serialize.diff
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Patch