Bug with :hidden selector and tbody in Internet Explorer

Bug with :hidden selector and tbody in Internet Explorer


Hi,
I am experiencing a bug (IMHO) with the :hidden selector in IE. Here is
my sample code:
<script type="text/javascript">
$(function () {
    $('#hidden').hide ();
    alert ($('#hidden').is(':hidden'));
});
</script>
<table>
    <tbody id="hidden">
        <tr><td>foo</td></tr>
        <tr><td>bar</td></tr>
    </tbody>
</table>
The code first hides the tbody and then checks "is(':hidden')". In
Firefox, Chrome and Safari it works correctly, but in IE it alerts
"false" (checked in IE 6 and IE 8).
I hope this helps track down the problem.
Best Regards,
Arno
--
Arno Schäfer
IT-Beratung & Softwareentwicklung
PHP - Java - Web-Anwendungen
Linux/Unix - MySQL - Hochverfügbarkeit - Security
Weilbornstraße 10 - 63303 Dreieich
mailto: arno_schaefer@gmx.de
Tel. +49-6103-699967 | Mobil +49-171-7939236