Copying and pasting an HTML list, <dl>, to text loses all formatting. NN4 works correctly. Given a list in Mozilla like: <dl> <dt>Subsection 1 <dd>Item 1 <dd>Item 2 <dt>Subsection 2 <dd>Item 5 <dd>Item 6 </dl> If I copy and paste it into a text editor like nedit or vi, it looks like: Subsection 1 Item 1 Item 2 Subsection 2 Item 5 Item 6 If I do the same thing using NN4, I get: Subsection 1 Item 1 Item 2 Subsection 2 Item 5 Item 6 NN4's behavior seems much more desirable. Tested with Mozilla trunk 2002-03-17-06 on Linux.
Also happens on Win2000 (Mozilla trunk 2002-03-18-03). Updating Platform and OS to All/All.
-->DOM to Text Conversion
Also screws up if I save my HTML testcase as a text file ("File/Save Page As..." and chosing type to be "Text File").
16 years ago
Comment on attachment 81495 [details] [diff] [review] Patch to fix it... Oh, yes, this is much better! r=akkana
Comment on attachment 81495 [details] [diff] [review] Patch to fix it... sr=heikki
Taking so I can test and check in...
16 years ago
Waiting for some action...
I've targeted this for 1.2 alpha, since I don't have time to test this right now. If you want, you can take this to check it in.
Back to Tanu...
The patch passes all the test case I tried, so asking for approval.
Tanu, check what it says on Tinderbox. Currently approval is not required for the trunk. So once the tree opens you can check in.
Checked in to TRUNK. nsPlainTextSerializer.cpp 09/16/2002 22:41 Rev:1.65
Verifying fixed. Tested with Mozilla 2002-09-17-09 trunk on Linux and 2002-09-17-08 trunk on Windows 2000 and XP. Works fine both copying to the clipboard and pasting as text and saving (File/Save As) as text.