Skip to main content

Bug Tracker

Side navigation

#12888 closed feature (plugin)

Opened November 13, 2012 07:49PM UTC

Closed November 13, 2012 08:04PM UTC

Would like option to have empty / unsuccessful elements return from serializeArray

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

It would be very useful to be able to have all properly formed input elements returned from a form via serializeArray, even the empty, W3C-unsuccessful ones. Python's CGI handling eg has this option. It's useful in the case where you have dynamically generated bunches of input elements; their being there but empty, is the most direct way to convey what the user did with them. Otherwise you have to add a non-empty hidden field for every input element to inform the caller that each is really there, or, some other roundabout method. It would be just an optional flag, as with Python's CGI.

Attachments (0)
Change History (1)

Changed November 13, 2012 08:04PM UTC by dmethvin comment:1

resolution: → plugin
status: newclosed

Not worth the bytes/complexity/documentation for core; there's a clear W3C-defined way to do things and we're doing them that way. Write a plugin for non-standard and unusual needs.