Open Bug 1247799 Opened 6 years ago Updated 9 months ago

Selection.toString() gives wrong number of newlines for white-space:pre block or <pre>

Categories

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

defect

Tracking

()

People

(Reporter: mats, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

No description provided.
It seems to me all these tests should produce the same result:
'aaaa\n\n\n\nbbbb'
Attachment #8718626 - Attachment description: Testcase #1 → Testcase #1 - white-space:pre DIV
Attached file Testcase #2 - <PRE>
Here's exactly the same test as #1 except using a <pre> instead of
<div  style="white-space:pre">.

(test6/7 have 3 newlines here compared to two in testcase #1)

Bulk-downgrade of unassigned, 4 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.