Closed Bug 8398 Opened 26 years ago Closed 25 years ago

Table caption text when at bottom makes table grow too large

Categories

(Core :: Layout, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: rods, Assigned: karnaze)

Details

(Keywords: testcase)

Attachments

(1 file)

When table caption text is at the bottom of a table, it makes the table grow too large when text is inserted into the table and it reflows ----------------------------------------------------------------- <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="Author" content="Rod Spears"> <meta name="GENERATOR" content="Mozilla/4.51 [en]C-NSCP (WinNT; U) [Netscape]"> <title>Show/Hide</title> </head> <SCRIPT LANGUAGE="JavaScript"> ///////////////////////////////////////////// function ShowHide() { statusCell = GetTextCell("Cell_0"); statusCell.data = "Hello"; } ///////////////////////////////////////////// function GetTextCell(aName) { var node = document.getElementById(aName); if (node != null) { if (node.hasChildNodes) { var children = node.childNodes var length = children.length var count = 0; while(count < length) { child = children[count]; if (child.nodeType == 3) { dump("found kid\n"); return child; } count++ } } } return null; } </SCRIPT> <body bgcolor=#C0C0C0> <form METHOD="POST" name="myform" > <input type=button value="Show/Hide" onclick="ShowHide()"> <table id="MainTable" cellpadding=2 border> <CAPTION ALIGN=BOTTOM>Caption text</CAPTION> <thead> <tr> <th>Head1</th> </thead> <tbody> <tr> <td><DIV id="Cell_0">&nbsp;</td> </tr> <tr> <td>&nbsp;</td> </tr> </tbody> </TABLE> <br> <input type=button value="Bad"> </form> </body> </html>
Status: NEW → ASSIGNED
Target Milestone: M10
Spoke to karnaze during bug triage today. Moving to M11. Not an M10 blocker.
Moving to M13.
Attempting to turn that fragment into a tescase, I found out that the quoted fragment does not work under NS4.7 - it fails with the Javascript error: document.getElementById is not a function. Don't know if that's relevant... Gerv
Moving to M15.
Target Milestone: M13 → M15
Whiteboard: [MAKINGTEST]
I converted the HTML fragment to proper html4 transitional and chopped it down to the bare minimum. Before hitting the show/hide button the content is rendered properly. After the table body is displayed below the caption, even though align="bottom" is defined.
Keywords: testcase
Whiteboard: [MAKINGTEST]
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed in the April 26th build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: