Closed
Bug 358461
Opened 18 years ago
Closed 16 years ago
Javascript remove line breaks from textarea when submitting data via AJAX
Categories
(Toolkit :: Form Manager, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: dyusuf, Unassigned)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 The contents of a textarea may contain line breaks. When the contents of a textarea is placed into a Javascript variable and this variable is passed into a Perl script, all the line breaks disappear. Reproducible: Always Steps to Reproduce: 1. Create an AJAX-style function designed to pass the values of a textarea into a server-side script 2. Type text into the textarea, adding line breaks, and then submit it 3. Observe that the text received by the server-side script no longer contains any line breaks. Actual Results: Line breaks seemed to be removed by Firefox's Javascript component. Expected Results: Line breaks should be preserved. When Safari is used, the line breaks were preserved.
Comment 1•17 years ago
|
||
Reporter, do you still see this problem with the latest Firefox 2? If not, can you please close this bug as WORKSFORME. Thanks!
Whiteboard: CLOSEME 07/14
Version: unspecified → 2.0 Branch
Assignee | ||
Updated•16 years ago
|
Product: Firefox → Toolkit
Updated•16 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
Whiteboard: CLOSEME 07/14
You need to log in
before you can comment on or make changes to this bug.
Description
•