Skip to main content

Bug Tracker

Side navigation

#10787 closed bug (duplicate)

Opened November 14, 2011 09:14PM UTC

Closed November 14, 2011 09:24PM UTC

Last modified November 14, 2011 09:25PM UTC

Selecting by [nodeName] finds nothing in 1.7

Reported by: drew.wells00@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7
Keywords: Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (2)

Changed November 14, 2011 09:24PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

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

Changed November 14, 2011 09:25PM UTC by dmethvin comment:2

Duplicate of #10377.