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.