I'm curious to hear if this has been resolved in jQuery 1.4a1, it may be. http://code.jquery.com/jquery-nightly.js
I should note that in your case you're not actually creating an XML fragment - you're creating a bunch of unknown HTML elements. --John On Wed, Dec 16, 2009 at 3:02 PM, jarrowwx <[email protected]> wrote: > I have a snippet of XML. > > var xml = $('<card><state><foo>1</foo></state></card>')[0]; > > On Safari, this works: > console.log( $(xml).find('card foo').text() ); // prints '1' > > On FireFox, it does not (returns empty string), > but this works: > console.log( $(xml).find('card').find('foo').text() ); // prints '1' > > I've worked around it. But it looks like it may be a jQuery bug. > > -- > > 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. > > > -- 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.
