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)
Tracking
()
VERIFIED
FIXED
M15
People
(Reporter: rods, Assigned: karnaze)
Details
(Keywords: testcase)
Attachments
(1 file)
1.18 KB,
text/plain
|
Details |
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"> </td>
</tr>
<tr>
<td> </td>
</tr>
</tbody>
</TABLE>
<br>
<input type=button value="Bad">
</form>
</body>
</html>
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M10
Spoke to karnaze during bug triage today. Moving to M11. Not an M10 blocker.
Assignee | ||
Comment 2•26 years ago
|
||
Moving to M13.
Comment 3•25 years ago
|
||
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
Assignee | ||
Comment 4•25 years ago
|
||
Moving to M15.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M13 → M15
Updated•25 years ago
|
Whiteboard: [MAKINGTEST]
Comment 5•25 years ago
|
||
Comment 6•25 years ago
|
||
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]
Assignee | ||
Comment 7•25 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•