Open Bug 1209409 Opened 9 years ago Updated 3 years ago

Fix BustUpInlinesAtRangeEndpoints so it does not create empty spans

Categories

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

defect

Tracking

()

Tracking Status
firefox44 --- affected

People

(Reporter: jorgk-bmo, Unassigned)

Details

While working on bug 772796, I noticed that BustUpInlinesAtRangeEndpoints sometimes creates empty spans.

This can be seen in test cases 44 and 45 of that bug here:
http://mxr.mozilla.org/mozilla-central/source/editor/libeditor/tests/test_bug772796.html?force=1#102

The expected result of the text is:
<div>test<span class="pre">foobar</span><br>
<span class="pre"></span></div> <--- empty span created here.
<span class="pre">baz</span>

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.