Summary: | SELECT with no name generates invalid query string | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Garrett Smith <xk1t> | ||||||||||||||||
Component: | Forms | Assignee: | Alexey Proskuryakov <ap> | ||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||
Severity: | Normal | CC: | ap, browserbugs2, ian, soapergem, work | ||||||||||||||||
Priority: | P2 | Keywords: | HasReduction, InRadar | ||||||||||||||||
Version: | 525.x (Safari 3.1) | ||||||||||||||||||
Hardware: | All | ||||||||||||||||||
OS: | All | ||||||||||||||||||
Attachments: |
|
Description
Garrett Smith
2008-07-27 00:24:51 PDT
Created attachment 22499 [details]
Test Case Showing Problem
?=invalid&=&wrong=disabled#done
Also of note: in Firefox, the disabled options are not selected unless they have the selected attribute. This is perfectly valid and affords the developer more control and flexibility.
Safari Version 3.1.1 (4525.18), navigator.userAgent:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.18
Created attachment 22501 [details]
Test Case Showing Problem
Bring in the bug id "id=" param for bugs.webkit.org bug id.
Created attachment 22512 [details]
Test Case Showing Problem
Created attachment 22517 [details]
Test Case Showing Problem
Created attachment 22519 [details]
Test Case Showing Problem
There is an identical bug at bugs.kde.org: B u g 148981: Do not submit disabled option in combobox https://bugs.kde.org/show_bug.cgi?id=148981 Created attachment 27697 [details]
proposed fix
This patch fixes the "select with no name" issue. As far as "disabled selected option" goes, this is a separate issue that needs to be discussed in a separate bug, especially since we match IE behavior here.
Comment on attachment 27697 [details]
proposed fix
Oops, I clicked the wrong option when submitting the patch! Marking for review now.
Comment on attachment 27697 [details]
proposed fix
r=me
Committed revision 41135. *** Bug 19005 has been marked as a duplicate of this bug. *** Created attachment 59190 [details]
Simpler testcase.
Submitting better testcase to FIXED bug for future reference/clarity -- the previous testcase was confusing.
*** Bug 21478 has been marked as a duplicate of this bug. *** |