Closed Bug 19038 Opened 25 years ago Closed 25 years ago

toggling COL.style.visibility = 'collapse'/'visible' looses content

Categories

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

x86
Windows 95
defect

Tracking

()

VERIFIED DUPLICATE of bug 18962

People

(Reporter: martin.honnen, Assigned: vidur)

References

()

Details

Attachments

(1 file)

When toggling the visibility of a COL element the table column gets first removed and then reappears with its width and background color but without the cells' contents. <SCRIPT> var visible = true; </SCRIPT> </HEAD> <BODY> <BUTTON ONCLICK="var col = document.getElementById('Name'); col.style.visibility = visible ? 'collapse' : 'visible'; visible = !visible;"> toggle visibility </BUTTON> <BR> <TABLE> <CAPTION> Gods </CAPTION> <COL ID="Name" ONCLICK="alert(event.type);"> <COL ID="Home" <COL ID="Power"> <TR BGCOLOR="blue"> <TH> Name </TH> <TH> Home </TH> <TH> Power </TH> </TR> <TR BGCOLOR="lime"> <TD> Kibo </TD> <TD> www.kibo.com </TD> <TD> 42 </TD> </TR> <TR BGCOLOR="yellow"> <TD> Xibo </TD> <TD> www.xibo.com </TD> <TD> -42 </TD> </TR> </TABLE>
Attached file bug demo (press button twice) (deleted) —
In an attempt to get my bug list in order again, marking all the bugs I have currently as ASSIGNED.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Component: DOM Level 2 → HTMLTables
Resolution: --- → DUPLICATE
I'm guessing this is a DUP of 18962. Also changing component to HTML tables *** This bug has been marked as a duplicate of 18962 ***
Status: RESOLVED → VERIFIED
[bugday] the same. read both. looks like it's the same bug.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: