Closed
Bug 60939
Opened 24 years ago
Closed 24 years ago
[CBX]SPACE in OPTION VALUE= tag makes form fail
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: xpusostomos, Assigned: rods)
References
Details
From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001119 BuildID: 2000111908 If you have an OPTION tag inside of a SELECT in a form, and if the VALUE="foobar " has spaces in it, then the browser doesn't appear to return any value for that form element. This makes certain web pages die a horrible death. (Yes there are good reasons to have a space in the VALUE attribute.) Reproducible: Always Steps to Reproduce: Create a form with a select and option... <SELECT> <OPTION VALUE="foobar ">FOOBAR</OPTION> </SELECT> (I am using a FORM with POST method if that matters) Now in the cgi or servlet (I'm using java servlet) the form element will not be in the request attributes. But if I use IE it will all be fine. If I take out the spaces it will be there. (But due to the application, we need the spaces there). Actual Results: Servlet crashes due to form element not existing. Expected Results: Return the value for the selected element.
Comment 2•24 years ago
|
||
Um... The <select> needs a name. Once I add one, the form submits with no problems and I see a value on the server end. linux build 2000-11-19-21. Do you still see the problem after adding a name attribute to the <select> If so, could you attach a testcase to this bug?
Assignee | ||
Comment 3•24 years ago
|
||
Yes, a name is required. Works this way in 4.x
Assignee | ||
Updated•24 years ago
|
Summary: SPACE in OPTION VALUE= tag makes form fail → [CBX]SPACE in OPTION VALUE= tag makes form fail
Comment 4•24 years ago
|
||
Chris, do you still see a bug here after adding a name for the select?
Comment 5•24 years ago
|
||
marking invalid unless we hear back from the reporter.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Updated•5 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•