Bug Tracker

Opened 9 years ago

Closed 9 years ago

#8504 closed bug (invalid)

$().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

Change History (4)

comment:1 Changed 9 years ago by anonymous

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

comment:2 Changed 9 years ago by anonymous

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!

comment:3 Changed 9 years ago by anonymous

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

comment:4 Changed 9 years ago by ajpiano

Resolution: invalid
Status: newclosed

Closing as per OP's request.

Note: See TracTickets for help on using tickets.