Closed
Bug 163453
Opened 22 years ago
Closed 22 years ago
CSS STYLE.DISPLAY=NONE DOESNT HIDE P AND TABLE NESTED IN DIV
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 163451
People
(Reporter: bugzilla, Assigned: jst)
References
()
Details
Hi, I'm probably retarded and haven't read the css2 spec close enuf but shouldn't the table and p's dissapear when you set display to 'none' ?? i know things might be different for block elements but i have tried numerous.. ..blahabbbllaaa blaaa. ---TEST CASE FOLLOWS--- Regards, Warren. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>why wont this damn thingy work</title> <style type="text/css"> .hideable2{display:none;} </style> <script language="javascript" > function show(name){ var g = document.getElementById(name) ; g.style.display ='inline' ; } function hide( name ) { var g = document.getElementById(name) ; g.style.display ='none' ; } </script> </HEAD> <BODY> <div class="hideable2" id="code"> <span>feed the code</span> </div> <a href="javascript:show('code');" >show</a> <a href="javascript:hide('code');" >hide</a> <br/> <div class="hideable2" id="monkey"> <table><tr><td>monkey</td></tr></table> </div> <a href="javascript:show('monkey');" >show</a> <a href="javascript:hide('monkey');" >hide</a> <br/> <div class="hideable2" id="banana"> <p>bananas</p> </div> <a href="javascript:show('banana');" >show</a> <a href="javascript:hide('banana');" >hide</a> </BODY> </HTML>
Comment 1•22 years ago
|
||
*** This bug has been marked as a duplicate of 163451 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•