IE8 crashes on hiding table column that intersects a rowspan
        Posted  
        
            by dk
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by dk
        
        
        
        Published on 2010-06-11T00:53:16Z
        Indexed on 
            2010/06/11
            1:03 UTC
        
        
        Read the original article
        Hit count: 414
        
IE 8 crashes with the following javascript but the same code works fine in IE6, IE7, IE8(IE7mode), FF3, Chrome and Safari. Has anyone run into this? Any known workarounds?
Thanks in advance, -dk
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function HideColumn(){
    document.getElementById('hide1').style.display = 'none';
}
</script>    
</head>
<body>
<button onClick="HideColumn();">Hide Column</button>
<table class="grid" border="1" width="300">
    <tbody>
        <tr>
            <td>A1</td>
            <td id="hide1" rowspan="3" style='background:silver'>HIDE ME!</td>
            <td>C1</td>
        </tr>
        <tr>
            <td colspan="3"> </td>
        </tr>
        <tr>
            <td>A3</td>
            <td>C3</td>
        </tr>
    </tbody>
</table>
</body>
</html>
        © Stack Overflow or respective owner