Bug Tracker

Modify

Ticket #8504 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

$().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:
Blocking: Blocked by:

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

comment:1 Changed 2 years ago by anonymous

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

comment:2 Changed 2 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 2 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 2 years ago by ajpiano

  • Status changed from new to closed
  • Resolution set to invalid

Closing as per OP's request.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.