> I made a simple test:
>
> <script type="text/javascript">
> var html = '<div id="x" onclick="alert('.')">123</div>';
> $('#test').html(html); // or $(html).appendTo('#test');
> var x = $('#x')[0];
> alert(typeof x.onclick);
> $('#test').empty();
> </script>
>
> Results:
> MSIE 6.0.2900.2180.xpsp_sp2_rtm.040803-2158 and all _normal_ browsers
> function
>
> MSIE 6.0.2900.5503.xpsp_sp3_qfe.080423-1303
> string!
>
> It means that this code:
> $('#test').html(html).find('#x').click();
>
> In throws an error in IE 6 on windows XP with sp3.
>
> should I create a ticket?

Absolutely - that'd be quite helpful. Thanks for spotting this.

--John

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to