Closed Bug 28920 Opened 25 years ago Closed 25 years ago

<td><p> results in line break at top of table cell

Categories

(Core :: Layout: Tables, defect, P2)

defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: pierre, Assigned: buster)

References

()

Details

(Keywords: testcase, Whiteboard: [TESTCASE])

Attachments

(5 files)

Tested with recent M14 builds on Mac and Windows. - Go to http://www.aol.com/ - Look at the links under "Web Centers" at the bottom/right corner ==> Every other line is empty (or almost empty: it only contains a list marker). I'm going to attach a testcase. The problem comes from bad HTML: the table has TDs that contain un-terminated P tags. Assigned to karnaze and CC'd rickg since its about bad HTML.
Attached file testcase (deleted) —
Closing tags on <P> are optional. The problem is that TDs are layed out on top rather than next to each other.
Ok, I figured out why this happens: The list code is: <tr valign=TOP> <td> &bullet; </td> <td><p class="sansb"> ....</td> </tr> The valign=top is supposed to align both cells on the same line, but the second cell has an additional line break inserted before the text, coming from the <P> tag. The question is: should <P> insert a line break at the start of a table cell. I think I saw a bug on this somewhere, but couldn't find it. Update summary.
Summary: AOL.com: links show wih empty lines → <td><p> results in line break at top of table cell
Nav4.x and IE5 render the attachment the same. Reassiginig to Kipp's bug list.
Assignee: karnaze → kipp
*** Bug 29451 has been marked as a duplicate of this bug. ***
Target Milestone: M16
Blocks: 29447
*** Bug 29230 has been marked as a duplicate of this bug. ***
i have another testcase. attaching it after this, comes from bug 29230. netscape and ie render it correctly,moz m15 nightly not
Attached file testcase 2 - with bug (deleted) —
Attached file testcase2 - working (deleted) —
*** Bug 30010 has been marked as a duplicate of this bug. ***
kipp is very unlikely to fix these, since he's not working ont he project any longer. so I'll take a look.
Assignee: kipp → buster
Attached file even simpler testcase (deleted) —
Blocks: 30574
No longer blocks: 30574
*** Bug 30574 has been marked as a duplicate of this bug. ***
bug 30967 "<td><p><img...></p></td> causes blank lines before and after image" deals with the same issue, inserts a further blank line at bottom of td. Similar enough for marking dupe?
*** Bug 30967 has been marked as a duplicate of this bug. ***
Keywords: testcase
Whiteboard: [TESTCASE]
important compatibility issue
Severity: normal → major
Status: NEW → ASSIGNED
Keywords: 4xp
Priority: P3 → P2
*** Bug 36607 has been marked as a duplicate of this bug. ***
*** Bug 33784 has been marked as a duplicate of this bug. ***
Attached file More difficulties with <p> in <td> (deleted) —
all testcases now work for me on 2000050412 win98
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
I am the reporter of Bug 33784 which was marked as a duplicate of this one. I see that this bug has been marked as "RESOLVED WORKSFORME" and believe it should be re-open. Take at look at http://www.narain.com/gecko/css/football.html and then tell me something isn't wrong :-) This page has worked fine until this bug showed up...even NN4 renders the page correctly.
Adding 'verifyme' keyword
Keywords: verifyme
verifying
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: