Modify ↓
Ticket #10787 (closed bug: duplicate)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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