<table>...<table><font>... causes contents of inner table to spill outside of cell

VERIFIED INVALID

Status

()

Core
Layout: Tables
P3
normal
VERIFIED INVALID
17 years ago
17 years ago

People

(Reporter: Eric Pollmann, Assigned: karnaze (gone))

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

17 years ago
BuildID:    20001206

In this test case, an outer table contains one row with two cells (LEFT and
RIGHT).  Each of the cells contains a table with a single row and cell with some
text.  If the inner table in LEFT contains a <font> tag (must be inside the
<table> but outside of the <tr> and <td>), the text in this cell will spill
outside LEFT and overlap the text in RIGHT.

Platform variations:

Linux: LEFT initially is sized very small so that text overlaps, resizing the
page has no effect

Windows NT: LEFT is sized as large as the width of the viewport allows, and will
resize when the window is resized.  This is also broken, contrast with what IE
5.x and Nav 4.x do.

I searched the bug list, but could not find a dup.  This seems possibly related
to a number of other bugs though, particularly, bug 53281, bug 56255, bug 57828,
and bug 58328.

Reproducible: Always
Steps to Reproduce:
1) View the attachment
2 [details] [diff] [review]) Notice that the text in the left cell overlaps into the right cell.
   If you do not see this, resize the window (shrink width) until it does.

Actual Results:  The text overlaps

Expected Results:  The text does not overlap (as in IE 5.x and Nav 4.x)
(Reporter)

Comment 1

17 years ago
Created attachment 20331 [details]
test case

Comment 2

17 years ago
Huh?? <font> must be inside the <table> sinds when?
The tag <font> in NOT allowed within <table> at all. And further more. <tr> is
NOT allowed within <font> even. And as you need to know, <font> is deprecated in
HTML 4.0, It WILL may become obsolute in the future!

Soorry for this, but, this kind of programming is really bad work! It's like
shooting on a pig with a M16. What do you expect to happen?

So this one is correct:
-----------------------
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>HJ's Example</title>
</head>

<body>
<table border=1>
<tr>
<td>
<table>
<tr>
<td nowrap><font face="arial">If this text overlaps the next cell, even on
resizing,</font></td>
</tr>
</table>
</td>
<td>
<table width=350>
<tr>
<td><br>Then take another Mozilla version!</td>
</tr>
</table>
</td>
</tr>
</table>

</body>
</html>

For now, I'm going to sleep:

Your W3C validator,
Friendly, HJ.

Comment 3

17 years ago
Wow! Agree.

<font> must be inside the <td>. Any other place is invalid with regard to tables
(outside table, in between <td>'s, <tr>'s).

Marking Invalid.
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID

Comment 4

17 years ago
But Eric, no hard feelings! Don't wanna be rude!

Comment 5

17 years ago
QA contact update
QA Contact: chrisd → amar

Comment 6

17 years ago
 Verified that this bug is invalid
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.