Closed Bug 55806 Opened 25 years ago Closed 25 years ago

Text in angle brackets lost

Categories

(Core :: DOM: Serializers, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: BenB, Assigned: jst)

References

Details

(Keywords: dataloss, Whiteboard: [rtm++][HAVE FIX])

Attachments

(1 file)

Reproduce: 1. Open HTML composer 2. Enter The URL: <http://www.zdnet.com/eweek/stories/general/0,11011,2637785,00.html>. See <http://www.bucksch.org/1/projects/mozilla/dist/mozcom>. More info soon, stay tuned. 3. Send (as plaintext) Actual result: The URL: . See . More info soon, stay tuned. Expected result: Same as entered in 3.. Reproduce: 4. Open this bug on Mozilla. 5. Select the text to be entereed in step 3.. 6. Paste in an textfield outside Mozilla, e.g. in 4.x. Actual result: The URL: . See . More info soon, stay tuned. (note the early linebreaks) Expected result: Same as to be entered in 3..
Propably a regression due to bug 50742. Please fix before M18. (No M18 keyword, ccing Asa instead.)
Keywords: dataloss, mozilla0.9, rtm
ok, we know about this one. Just looking for advice on whether jst's fix is the right one.
Attached patch Proposed fixSplinter Review
The attached patch fixes the problem by not using the entity converter that is not meant to be used for what we tried using it for, in stead the serializer now uses nsEscapeHTML2() which does the right thing.
Status: NEW → ASSIGNED
Priority: P3 → P1
Whiteboard: [HAVE FIX]
jst, thanks for fixing. Patch works for me. (This is no r=.) If you have time, check if you can use |mozITXTToHTMLConv:ScanTXT| with param whattodo == 0. It does the same, and is the "real" HTML->TXT converter, but I don't know about the performance.
s/HTML->TXT/TXT->HTML/
*** Bug 55711 has been marked as a duplicate of this bug. ***
According to jst, this bug, which was caused by the NOXIF checkin, has been reviewed and approved by waterson. RTM+'ing it for PDT approval.
Whiteboard: [HAVE FIX] → [HAVE FIX][rtm+]
Marking rtm++ per discussion with Jim (jar), this will go in as part of the noxif carpool.
Whiteboard: [HAVE FIX][rtm+] → [rtm++][HAVE FIX]
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
The fix for this was checked in with the noxif landing yesterday and today (branch and trunk). Marking fixed
verified with my Linux build from yesterday. Other platforms untested.
marking verified per Ben's comments.
Status: RESOLVED → VERIFIED
I checked the trunk build only.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: