Open
Bug 1041134
Opened 11 years ago
Updated 5 years ago
Copy/Paste problem when copying forum code
Categories
(Core :: DOM: Serializers, defect, P5)
Tracking
()
NEW
People
(Reporter: moderncareca, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(3 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0; rv:11.0) like Gecko
Steps to reproduce:
Go to page: http://www.autoitscript.com/forum/topic/157729-hex-to-image-in-memory/
Copy the text in the box in the first post
paste on notepad or whatever, text comes out in a single sentence.
To avoid this, have to press button popup, and then copy paste, if the text has more than 21 or so lines, all is good, else, get the single line of text.
Actual results:
Uppon paste, multiple lines of text got into a single line of text.
Expected results:
Should get a "block" of text with as many lines as when copied.
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Component: Untriaged → Serializers
Ever confirmed: true
Keywords: testcase
Product: Firefox → Core
Comment 1•11 years ago
|
||
(I've tried to narrow down the testcase, but I've been unsuccessful beyond http://jsbin.com/duqove/1/edit - trying to remove any HTML breaks the testcase )
What can i do to help? What do you think could be the issue?
Comment 3•11 years ago
|
||
(In reply to careca from comment #2)
> What can i do to help? What do you think could be the issue?
Trying to figure out what part of the HTML or CSS causes this issue would be helpful. I've not managed to figure it out so far, and I don't know what would cause the issue.
Well, discovered that copying everything but the last characted seems to solve the issue, does that help?
Remove the <div></div> which is inside the <pre></pre> and it works. Removing only the CSS is not enough. The div element causes this issue. If you add some text with newlines just before or after the div section, it will be copied properly. But text in the div section is not (newline replaced by a space).
This bug is similar to Bug 894461.
Comment 10•11 years ago
|
||
The bug occurs when a <pre></pre> contains a <div></div> which contains markup or some mixtures of markup and text.
As I've said, without the <div></div>, everything works.
Furthermore, all is good when the <div></div> contains only plain text (i.e. no markup). Except when the text is selected with Ctrl-A/Select All instead of manually with the mouse. Then the same issue occurs.
Comment 11•5 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.
If you have reason to believe this is wrong, 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.
Description
•