[Webkit-unassigned] [Bug 30103] New: Submitting an empty form with GET should not append a question mark
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 5 18:27:55 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=30103
Summary: Submitting an empty form with GET should not append a
question mark
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: arv at chromium.org
CC: brettw at chromium.org
If we submit a form using GET and there is no form data we should not append a
question mark '?'.
<form action="b.html" method="GET"></form>
<button onclick="document.forms[0].submit()">Submit</button>
This should navigate to "b.html" and not "b.html?"
The bug seems to be in KURL::setQuery. It always adds a '?' no matter what
http://trac.webkit.org/browser/trunk/WebCore/platform/KURL.cpp#L779
Brett, KURLGoogle has a comment that it does not add the '?' and that we need
to eliminate this difference but it seems we always get the extra '?' with
KURLGoogle as well.
http://trac.webkit.org/browser/trunk/WebCore/platform/KURLGoogle.cpp#L652
--
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