Replying to [comment:1 john]:
john ... sorry if I didn't give enough detail/intent ... I was trying to keep it simple. My specific situation is that I have XML being returned from an ajax call. I want to parse that xml for a particular result. (obviously, then, I'm not dealing w/ html elements here).
Here's a revised example that, again, works in firefox, but not IE ...
var xmldata = "<result><success>true</sucess><message>test</message></result>" ;
alert($("result message",xmldata).text()) ;
The intent, to be clear, is the find the message element and output its content text.
Am I wrong in expecting this to work? Are jquery selectors for html docs/elements only, or are other XML docs valid targets, too? Am I correct in thinking that I should be able to target this random XML blob with a selector? Again, the fact that it works in firefox makes me thing I'm not crazy here, but maybe that's just a lucky coincidence (i.e., it works, but not by design).
The fact that the jquery documentation for '$( expr, context )' contains this comparable example (selecting against a XML doc):
... makes me think that this ''should'' work.
I'll reopen this one last time ... if I'm off-base let me know and I'll let it go.
(I'm also experiencing this on IE6 on a separate machine)