Closed Bug 152991 Opened 22 years ago Closed 22 years ago

Trailing white space in input values is deleted in form submission

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 114997

People

(Reporter: mozilla, Assigned: alexsavulov)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020607
BuildID:    0000000000

Trailing white space in form values is not passed by browser at time of form
submission.  I am maintaining an auto-detect test database of all visitors at
http://www.streetprices.com/mozilla/20020619-1.pl

A simple test case is:

<form method=get>
<input type=hidden name=dei value="feif&#9;">
<input type=submit>
</form>

Correct browsers pass a value of 'feif' followed by a tab character.
Faulty browsers drop the trailing white space and pass only a value of 'feif'.


Reproducible: Always
Steps to Reproduce:
1.Click on the submit button in a form containing values that end with
intentional white-space.

Actual Results:  Mozilla passed only the value 'feif'.

Expected Results:  Mozilla should have passed 'feif' AND the trailing tab
character (cgi-encoded).

You can test your fix at http://www.streetprices.com/mozilla/20020619-1.pl

Please pass a _unique_ HTTP_USER_AGENT value for each build you test.

Thanks!

-Stephen
john,

wouldn't this be rather parser?

*** This bug has been marked as a duplicate of 114997 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verifying 
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.