On 10/25/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: > > Is it crashing right on line 1568, or is it lower down where it pulls the > > elements out of arg? > > > > Perhaps it is dying on the "if" right below that? No reason for it to do > > that but who knows. Instead of letting it fall into the loop replace line > > 1568 (arg = div.childNodes) with this: > > > > for ( var n = 0; n < div.childNodes.length; n++ ) > > r.push(div.childNodes[n]); > > return; > > It was dying on the if... I removed the check !arg.nodeType for testing > and it worked (commenting out the other stuff)
We need to look into this more. I bet passing a nodeList with these text nodes would probably still result in Safari crashing. The quick-fix is there but I think it might still have issues. Is the check for !arg.nodeType necessary? -- Brandon Aaron _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
