[Webkit-unassigned] [Bug 30103] Submitting an empty form with GET should not append a question mark

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 25 17:02:13 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=30103


Victor Costan <costan at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |costan at gmail.com




--- Comment #6 from Victor Costan <costan at gmail.com>  2013-09-25 17:01:13 PST ---
IE9 follows Firefox's behavior, but WebKit follows the standards. (in my understanding)

The HTML5 forms TR says that method="GET" means the form data is URL-encoded, and the algorithm for that returns the empty string. The action URL mutating algorithm says the query is set to this empty string, and then the URL is serialized using the URL spec. The URL spec says that if the query is non-null, the URL gets a "?".

Query computation: http://www.w3.org/TR/html5/forms.html#application/x-www-form-urlencoded-encoding-algorithm
Action URL mutating: http://www.w3.org/TR/html5/forms.html#submit-mutate-action
URL serializing: http://url.spec.whatwg.org/#serializing

Assuming we want to follow Firefox / IE instead of the standard, fixing this bug should be a matter of reverting the KURL change and updating the layout test in https://bugs.webkit.org/show_bug.cgi?id=8051

Please let me know. I'd be happy to submit a patch.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list