On Wed, 25 Nov 2009 13:53:36 -0000, Dave Methvin <dave.meth...@gmail.com>  
wrote:

>> I've just run into a problem where running append and passing in more  
>> than one item of text causes IE7 to completely crash (IE8 gives a JS  
>> error and FF works fine).
>
> Yep, it's reported here:
>
> http://dev.jquery.com/ticket/4011
>
> The fix is pretty easy; in jQuery.clean just change this:
>
>  var ret = [], div = context.createElement("div");
>  jQuery.each(elems, function(i, elem){
>      if ( typeof elem === "number" ) {
>
> to this:
>
>  var ret = [];
>  jQuery.each(elems, function(i, elem){
>      var div = context.createElement("div");
>      if ( typeof elem === "number" ) {
>
> I can't begin to explain IE's behavior here, but this seems to appease
> it.
>

Cool - thanks :)

In my case I'm just passing text nodes in rather than strings (as in my  
works2.html example) so I can still use the release version of jQuery via  
the google CDN but it would be great if a fix for this was in the next  
release of jQuery - it took me a little while to track down exactly what  
the problem was when I ran into it...

Cheers,

Kelvin :)

--

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


Reply via email to