Line breaks submitted as &#10; instead of <LF>

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
13 years ago
9 years ago

People

(Reporter: eric5brewer, Unassigned)

Tracking

({testcase})

Trunk
PowerPC
Mac OS X
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

If a page is encoded in non-Western charset and the form is submitted with method="post" enctype="multipart/form-data", the line breaks in text areas are being submitted as '&#10;' instead of '<LF>'.

Reproducible: Always

Steps to Reproduce:
1. Open the attached HTML file. Press Submit button.
2. Save the returned page as a plain text file (compare with the attached text file).
3. Open the text file in a text editor.

Actual Results:  
Notice the line:
Enter&#10;text&#10;with&#10;line&#10;breaks

Expected Results:  
This line should have looked like:
Enter
text
with
line
breaks

This bug makes Firefox unusable for foreign language web-based mail services.
(Reporter)

Comment 1

13 years ago
Created attachment 216104 [details]
HTML file containing the form

Open the file and press "Submit"
(Reporter)

Comment 2

13 years ago
Created attachment 216105 [details]
The returned page saved as a plain text file

Line breaks have been replaced with &#10;
(Reporter)

Comment 3

13 years ago
> 2. Save the returned page as a plain text file (compare with the attached text
> file).

Sorry, actually the returned page should be saved as Web Page HTML Only. Then open it as plain text.

Updated

13 years ago
Keywords: testcase

Comment 4

13 years ago
Related to Suite bug 241263?
(Reporter)

Comment 5

13 years ago
> Related to Suite bug 241263?

Looks similar to me, although they could not make it reproducible for some reason. I guess the problem occurs whenever the page is set to non-Western encoding.
Is this still a problem with current trunk builds?  I can't seem to reproduce on Linux, but maybe this is Mac-only...
Blocks: 241263
Assignee: form-submission → nobody
QA Contact: ian → form-submission
You need to log in before you can comment on or make changes to this bug.