Losing checkbox 'checked' state on append under IE6?

Losing checkbox 'checked' state on append under IE6?


Hello list,
Not sure if this is the right place to ask this but here goes. I might
have discovered an issue with jquery under IE6. It seems a checkbox
doesn't keep it's state after it is appended to another element. The
following piece of code reproduces the issue. Can someone shed some light
on this?
Thanks in advance,
- Emiel van de Laar
--
<html>
    <head>
        <script type="text/javascript" src="jquery-nightly.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                    var state = true;
                    var cb = $('<input type="checkbox">');
                    cb.attr('checked', state);
                    alert("before: " + cb.attr('checked'));
                    $('p').append(cb); // Calling append loses checkbox state in IE 6.
                    alert("after: " + cb.attr('checked'));
            });
        </script>
    </head>
    <body>
        


    </body>
</html>