jQuery: The Write Less, Do More JavaScript Library

Ticket #1346 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

Error in node selection in XML documents

Reported by: plz Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.4 Component: core
Version: 1.1.3 Keywords:
Cc: Needs: Review

Description

In the success callback of $.ajax() call, I make selections of some nodes in the resulting XML document. More precisely: _afterAjaxSuccess = function (data) {

$('//node1/node2', data).each(

function () {

some code...

}); ...

} This is perfectly working on version 1.1.2, while in 1.1.3 the above selection return 0 nodes. Note that both the selections $('//node1', data) and $('//node2', data) works in 1.1.3; it fails when I add child nodes 'node2' to 'node1'. For a real case, try the XML attached file with the following selection:

$('//LstElementi/UnitaOrganiz', data)

Attachments

test.xml (30.5 kB) - added by plz 1 year ago.
XML test file

Change History

Changed 1 year ago by plz

XML test file

Changed 1 year ago by john

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN rev [2241].

Changed 1 year ago by john

  • milestone set to 1.1.4
Note: See TracTickets for help on using tickets.