Open
Bug 1623311
Opened 5 years ago
Updated 5 years ago
Whitespaces are not trimmed inside <div> and <p>
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
NEW
| Tracking | Status | |
|---|---|---|
| firefox76 | --- | affected |
People
(Reporter: saschanaz, Unassigned)
Details
(Keywords: parity-chrome)
https://codepen.io/SaschaNaz/pen/MWwXEbW
Put <div>s and <p> like the below:
<div id="div">
foo
</div>
<p>foo
- Select the whole lines
- Copy and paste it into any text box
Expected: "foo\nfoo" (or "foo\n\nfoo"?)
Actual: " foo\n\nfoo "
Keywords: parity-chrome
https://bugzilla.mozilla.org/show_bug.cgi?id=1623311#c0 happens on Windows, I guess. On Ubuntu it's "\nfoo\n\nfoo ".
It's presumably a bug in nsPlainTextSerializer, whitespace and newline handling there is a mess.
Chrome produces: "foo\nfoo".
Priority: -- → P3
Comment 2•5 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•