It seems that the DOM parsed 'on the fly' isn't ready for querying.

When doing something weird like:

var xml = $('<root><p>Hello World!</p><p>Bye World!</p></root>');
$(xml).appendTo("body");

then the

alert($("p").text());  // without context

works !




Reply via email to