Closed Bug 24112 Opened 25 years ago Closed 25 years ago

TFOOT rendered above TBODY

Categories

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

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: bugzilla, Assigned: harishd)

References

()

Details

(Keywords: html4)

If a table is specified with THEAD/TFOOT/TBODY row groups (in the correct order), Mozilla erroneously renders the TFOOT row group before the TBODY row groups rather than after. (It appears that Mozilla ignores row group tags altogether.)

This is contrary to the HTML 4.0 specification:
http://www.w3.org/TR/REC-html40/struct/tables.html
Summary: TFOOT rendered above TBODY [4.xP] → [4.xP] TFOOT rendered above TBODY
In nightly build 2000011508, when the optional closing tag </TFOOT> is omitted, any following <TBODY> groups appear as a subtable beneath the <TFOOT> group. When the </TFOOT> closing tag is included, the <TFOOT> group is correctly positioned after the <TBODY> groups.
Assignee: karnaze → harishd
Harish, the content model is wrong for

<table border>
 <thead><tr><td>head
 <tfoot><tr><td>foot
 <tbody><tr><td>body
</table>
Priority: P3 → P2
Target Milestone: M14
The real problem here is that elements are being closed out properly. If you
manually add the right close tags, the page lays out right. It looks like an
autoclosure bug in the navDTD.
FIXED by adding TD|TH to the autoclose tag list of TBODY,THEAD,and TFOOT.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Using 2/1 build, verifying bug fixed. Using the 1/16 small testcase, tbody 
renders above tfoot as expected.
Status: RESOLVED → VERIFIED
Blocks: robin's
In accordance with "4xp for 'competitor products' Considered Harmful" thread on
n.p.m.qa.general, stripping the [4.xP] off this bug, though it's moot now.
Keywords: html4
Summary: [4.xP] TFOOT rendered above TBODY → TFOOT rendered above TBODY
You need to log in before you can comment on or make changes to this bug.