Closed Bug 22225 Opened 26 years ago Closed 26 years ago

Auto-insert of <br> in empty cell inserts 2 <br> when file is read

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: cmanske, Assigned: mozeditor)

Details

Attachments

(1 file)

The rules code enforces non-empty cells by inserting a <br> when a table cell is created. But when we read in a table that has completely empty cells, we automatically insert 2 of them instead of just 1. Now that I think about it, I'm not sure if we should be inserting any <br> during file loading. That kind of HTML mangling is what got us much criticism in earlier versions.
Note that if the test file is loaded in the browser, only the first cell (with the "1") shows its border. There is a second cell under it that doesn't display the border. When you load the file into Composer, 2 <br>s are inserted into the second cell.
Agreed that we shouldn't mangle the user's html by inserting br's into table cells. Though this doesn't seem to be happening for me -- see the test case in bug 22227.
Target Milestone: M13
setting to m13
Status: NEW → ASSIGNED
hmm. For mail compose we _do_ want to put in the breaks (we dont care about html preservation for mail compose - we do care about being able to click in empty cells). But the part about getting *2* breaks is definitely a bug.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
fixed
Status: RESOLVED → VERIFIED
verified in 1/13 build.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: