Open Bug 304455 Opened 19 years ago Updated 4 years ago

Mozilla adds unneeded \n when copying <td><div>text</div></td> tables to clipboard

Categories

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

x86
All
defect

Tracking

()

People

(Reporter: tivv00, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.7.10) Gecko/20050720 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.7.10) Gecko/20050720 Firefox/1.0.6 If TD in a table does not directly contains text, but text in a <DIV> it adds \n right after div when copying to clipboard - and you loose you table because everything is one column Reproducible: Always Steps to Reproduce: 1. Load html from attachment 2 [review]. Copy it to clipboard 3. Paste it somewhere (better to some spreadsheet) Actual Results: 1x4 table displayed in a spreadsheet (tested Excel on Windows and Mesa on OS/2) Expected Results: 2x2 table displayed in a spreadsheet. Actually I'd recommend not to insert \n after last DIV in a parent - it is not needed.
Attached file testcase
Component: OS Integration → DOM to Text Conversion
Product: Firefox → Core
Version: unspecified → Trunk
Assignee: nobody → dom-to-text
QA Contact: os.integration
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Assignee: dom-to-text → nobody
QA Contact: dom-to-text

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: