Bug Tracker

Modify

Ticket #10787 (closed bug: duplicate)

Opened 19 months ago

Last modified 19 months ago

Selecting by [nodeName] finds nothing in 1.7

Reported by: drew.wells00@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7
Keywords: Cc:
Blocking: Blocked by:

Description

The syntax being discussed here is performing a find on a jQuery wrapped document.

var xml = "<doc><dsp></dsp></doc>",
    $xml = $( $.parseXML( xml ) );

$xml.find('[nodeName=dsp]');

Tests in:

1.6.4 (works):  http://jsfiddle.net/vZkUH/

1.7.0:  http://jsfiddle.net/xABKx/1/

edge:  http://jsfiddle.net/fmWHj/1/

I repeated these tests with localName and got the same results. Perhaps there is a simple solution to workaround this.

Change History

comment:1 Changed 19 months ago by dmethvin

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

It was a bug that it worked before. The XML does not have a nodeName attribute. See the dup ticket for solutions.

comment:2 Changed 19 months ago by dmethvin

Duplicate of #10377.

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.