Skip to main content

Bug Tracker

Side navigation

#8504 closed bug (invalid)

Opened March 11, 2011 04:38PM UTC

Closed March 12, 2011 06:43PM UTC

$().find() does not find tags when inserted via XSLT

Reported by: fatih Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
Description

XSLT:

...

<div id="xmlData">

<newdoc>

<xsl:copy-of select="."/>

</newdoc>

</div>

...

Result in the browser (for example firebug output):

...

<div id="xmlData">

<newdoc>

<change name="change1" task="say hello">Comment 1</change>

</newdoc>

</div>

...

JavaScript:

$xml = $('#xmlData');

$xml.find('change') ... this does NOT work!

$xml.find('[name]') ... strangely DOES work!

$xml.find('newdoc') ... // does work too!

Using Firefox 3.6.15

Attachments (0)
Change History (4)

Changed March 11, 2011 07:49PM UTC by anonymous comment:1

Seems to be working for me! jQuery 1.5.1, Firefox 3.6.15

Changed March 11, 2011 07:53PM UTC by anonymous comment:2

Hint: If XSL Embeds XML into a document, firebug will always display it with the tag and attribute names in lower case. However, they are actually being held in mixed case as entered. So, even if firebug is showing element as <change>, if the original input was <Change>, then $().find('change') would not find it, $().find('Change') would find it!

Changed March 12, 2011 01:10PM UTC by anonymous comment:3

A failure on my side I'd say. Thanks for the fast response. This ticket can/should be removed.

Changed March 12, 2011 06:43PM UTC by ajpiano comment:4

resolution: → invalid
status: newclosed

Closing as per OP's request.