Re: [whatwg/url] URLSearchParams inconsistent behavior with multiple same-name parameters leads to data loss on backend (Issue #889)

annevk left a comment (whatwg/url#889)

PHP did not invent `application/x-www-form-urlencoded`. That format was invented when forms were added to HTML. It only has a cursory mention in HTML 3.2 though. It was slightly improved in HTML 4.01: https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1. And then it got a more formal definition afterwards with this specification being the current host.

And PHP is incompatible with the format. But you can use a subset of the format in a specific way as you note and it'll work fine with PHP.

We did discuss this a bit back in 2020 #556 and you are the second person to complain about it. That makes me think it's not a particularly urgent problem, but we can keep this open to gauge interest. (If more interest materializes we should probably investigate those libraries you mentioned in more detail to see what they do exactly.)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/889#issuecomment-3462812379
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/889/3462812379@github.com>

Received on Wednesday, 29 October 2025 17:33:46 UTC