Sorry, I did not mentioned that I have not tested it, but was something to try and see if it would work. I'll try it out myself later and see it also.
On Apr 2, 9:14 pm, Javier Martinez <ecentin...@gmail.com> wrote: > Have you tried your code? > > Has the exact same error. > > The code that I provide is not valid, but when jQuery insert it on the dom, > is inserted correctly. > > Maybe I should post a ticket on the jQuery trac. > > Someone has some information about this? > > 2009/4/2 James <james.gp....@gmail.com> > > > > > <div id="from"/> is not valid, I think. > > You should try: > > '<div><div id="from"></div><div id="to"></div></div>' > > instead. > > > On Apr 1, 11:59 pm, Javier Martinez <ecentin...@gmail.com> wrote: > > > Chrome has errors selecting more than one element where these elements > > are > > > not inserted yet. > > > > Test case (execute this snippet in some page): > > > > alert($('<div><div id="from"/><div id="to"/></div>').find('#from, > > > #to').length); > > > > The version I'm using is 1.3.2 > >