Closed Bug 202842 Opened 23 years ago Closed 23 years ago

If get method form's action URI has arguments, they are not kept when submitting form

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: pierre.thierry, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.3) Gecko/20030327 Debian/1.3-4 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.3) Gecko/20030327 Debian/1.3-4 When the form has an action with URI arguments like this : <form action="http://www.domain.tld/file?arg1=1&arg2=2" method="get"> <input name="field1" value="3"/> <input name="field2" value="4"/> </form> The HTTP requested URI will be : http://www.domain.tld/file?field1=3&field2=4 But it should be : http://www.domain.tld/file?arg1=1&arg2=2&field1=3&field2=4 Reproducible: Always Steps to Reproduce: Actual Results: Only the arguments from within the form are in the HTTP request. Expected Results: The arguments from the action URI should also be in the HTTP request.
Summary: If form's action URI has arguments, they are not kept when submitting form → If get method form's action URI has arguments, they are not kept when submitting form
Other browsers do not send those, and the algorithm described in the HTML spec for GET form submission would lead to bogus URIs. Is there a good reason we should break compatibility here?
It's really sad that other browsers do not send it, because it would be nice, but I concur--compatibility on this question is way more important than the scant benefit we get from being able to send both sets of parameters. I do believe many sites would break (yes, the sites are broken, but what can you do?). Note that if you use POST, both sets of parameters are in fact sent, if you're trying to find a way to do this.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.