`jQuery.param`’s behaviour differs with the one described in the docs #3023
|
Nice catch, @sowcow! Would you like to submit a PR? |
|
Everyone agrees this is ready to land? If so I'll land it for master/3.0, update the 3.0 upgrade guide, and submit a docs ticket to change the version to 3.0. Ugh, I guess we'll also need a Migrate ticket. |
|
One thing I just realized, the tests here were covering the case for @sowcow would you be able to do that? You can use this test as a template because it does something very similar. Just pass in |
|
For reference, PR is in #3030. |
|
sorry @sowcow should have pinged you here since the action item was here. |
docs
http://api.jquery.com/jQuery.param/
As of jQuery 1.8, the
$.param()method no longer usesjQuery.ajaxSettings.traditionalas its default setting and will default tofalse. For best compatibility across versions, call$.param()with an explicit value for the second argument and do not use defaults.actual
https://github.com/jquery/jquery/blob/master/src/serialize.js#L65