Skip to main content

Bug Tracker

Side navigation

Ticket #5670: IE8_visible_after_inline.html
File IE8_visible_after_inline.html, 1.1 KB (added by geoffreyk, December 16, 2009 11:57PM UTC)

IE8 visible after inline

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Visibility Test for jQuery</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    
    <style type="text/css">
        .aaa {
            display: inline;
        }
           
        .bbb {
            display: none;
        }
    </style> 
    
       
    <script src="http://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function() {
            alert('number of visible div elements: ' + $('div:visible').length)
            alert('is class .bbb visible? ' + $('.bbb').is(':visible'))
        }); 
         
    </script>

    </head>
    <body>      

    <div class="aaa">This is display inline</div>
    <div class="bbb">This is display none</div>

    </body>
</html>

Download in other formats:

Original Format