Html attribute with div containing form containing table:
<!DOCTYPE html> <html> <head> <style type="text/css"> #content{position:relative} table {border-color:#999;border-style:solid} </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> </head> <body> <button onclick="javascript:$('.content-panel').toggle();">Toggle</button> <div id="content"> <div class="content-panel"> <form action='' method='post'> <select> <option>a </option> </select> <table> <tr><td>ABCDEF</td></tr> </table> </form> </div> </div> </body> </html>
The switch button should hide the form and its nested table, but this is not done in IE8. (version 8.0.60001) The contents of the form are hidden, but the border of the table continues to be displayed and retains its size. This is due to standard mode; it disappears in quirks mode.
Does anyone have a workaround?
This example page has been reduced to the extent that I can reduce it. If I remove select or any of the divs, the problem goes away. The selection must be present, and the table must be nested in the form, since it will contain the elements of the form.
The page itself is located at: http://dev.rdbhost.com/rdbadmin/mainProbDemo.html
I posted this issue earlier with an overly simplified example that was not reproducible. Thank you if you looked at him.
jquery internet-explorer-8
Rdbhost
source share