[Webkit-unassigned] [Bug 20184] New: SELECT with no-name generates invalid query String
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jul 27 00:24:51 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20184
Summary: SELECT with no-name generates invalid query String
Product: WebKit
Version: 525.x (Safari 3.1)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: dhtmlkitchen at gmail.com
CC: ian at hixie.ch
A SELECT element with no name is submitted.
A SELECT with a selected, disabled OPTION submits the disabled OPTION.
This results in the unsuccessful controls generating values in query strings
and invalid query strings:
?=invalid&=&wrong=disabled#done
* "invalid" is the selected OPTION of a SELECT that has no name
* "&=" is the selected OPTION with no value of a SELECT that has no name
* "wrong=disabled" is the selected OPTION with the value "disabled" of a
SELECT with the name "wrong"
Instead, the submit with no name should not be submitted and disabled OPTIONS
should not be submitted.
If the selected option does not have a value, the browser may consider the
select to be unsuccessful. This would result in either the query string
"wrong=" or no query string.
If there is no OPTION selected, the browser may select the first OPTION or the
first enabled OPTION. This would result in the test case:
1) (no query string)
2) wrong=enabled (only if the enabled OPTION were default selected).
| If a control doesn't have a current value when the form is
| submitted user agents are not required to treat it as a successful
| control." [1]
[1] HTML 4.01, Forms, Successful Controls.
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list