I'm using the latest jquery version.(1.9.1)
I have an empty span
element :
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body> <span class="c"></span>
</body>
<script type='text/javascript'>
alert($(".c:visible").length);
</script>
</html>
- Chrome ( latest ver ) alerts
0
- FF (latest ver) alerts
1
- Ie (8) alert
0
Why doesn't it alert1
at chrome ? the element is not hidden.
I can work around this by using filter and spit out all the !display:none
but wanted to know if i'm doing anything wrong