$.find() does not find tags on inserted XSLT content
I wanted to parse through an XML document that has not been loaded via AJAX.
Normally find() has no problems with finding the nodes when I search for tags but if you insert the content via xslt, it strangely is not able to find any node!
Example:
XSLT:
<div id="xmlData">
<newdoc>
<xsl:copy-of select="."/>
</newdoc>
</div>
Produces the following HTML:
<div id="xmlData">
<newdoc>
<change name="change1" task="say hello">Comment 1</change>
</newdoc>
</div>
Accessing with jQuery:
$xml = $('#xmlData');
$xml.find('newdoc')... // works!
$xml.find('[name]')... // works!
$xml.find('[task]')... // works!
$xml.find('change')... // does not work!
Tested using firefox 3.6.15