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)
Tracking
()
VERIFIED
FIXED
M13
People
(Reporter: cmanske, Assigned: mozeditor)
Details
Attachments
(1 file)
|
329 bytes,
text/html
|
Details |
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.
| Reporter | ||
Comment 1•26 years ago
|
||
| Reporter | ||
Comment 2•26 years ago
|
||
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.
Comment 3•26 years ago
|
||
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.
Updated•26 years ago
|
Target Milestone: M13
Comment 4•26 years ago
|
||
setting to m13
| Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 5•26 years ago
|
||
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.
| Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 6•26 years ago
|
||
fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•