Closed
Bug 1390115
Opened 9 years ago
Closed 7 years ago
White-space: pre-wrap not working for divs when copy-pasting
Categories
(Core :: DOM: Serializers, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 1174452
People
(Reporter: khoi, Unassigned)
References
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36
Steps to reproduce:
1) Create an HTML page containing only
<div style="white-space:pre-wrap;">Hello
How are you</div>
2) Copy the text inside the div via Firefox
3) Paste in a text editor
JSFiddle: https://jsfiddle.net/q0ybk99t/3/
Actual results:
Hello How are you
Expected results:
Hello
How are you
Summary: White-space: pre-wrap not working for divs → White-space: pre-wrap not working for divs when copy-pasting
Updated•9 years ago
|
Component: Untriaged → Serializers
Updated•9 years ago
|
Priority: -- → P3
I'm not sure if this is worthy of its own bug report, but white space is also collapsed when copying text from a block element with `white-space: pre` styling. Interestingly, I cannot reproduce on elements that are normally inline.
Are there any plans to actually fix this, or is it just going to be broken forever?
Here's a better example of the bug:
http://12me21.github.io/firefoxbug/
It affects any element, not just div.
Updated•7 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•