Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#7854 closed bug (duplicate)

$(XMLResultObject).find(descendant) in IE6 works fine in jQuery-1.3.2 but not in jQuery-1.4.4

Reported by: anonymous Owned by:
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:


$(XMLResultObject).find(descendant) in IE6 works fine in jQuery-1.3.2 but not in jQuery-1.4.4

Here is the AJAX call:


type: "POST", url: serviceUrl, contentType: "application/json; charset=utf-8", data: paramList, dataType: "text", success: function(result) {

dataStore.Result = JSON.parse(result).d; Pfizer.CC.Client.Biz.API.Service.runOnSuccess();

}, error: function() {




Here is the XML stream returned (correctly in both browsers) and set in a string variable:

<?xml version="1.0" standalone="yes"?> <CCBizModel xmlns="CCBizModel"> <BizItem>

<BizContext>Startup</BizContext> <ParameterCollection>


</ParameterCollection> <PayLoadCOllection>


<HeaderDate>November 10</HeaderDate>


</PayLoadCOllection> <Status>Success</Status> <NotificationCollection>

<Notification>All Requests Succeeded</Notification>


</BizItem> </CCBizModel>

Here is the success method that works in jQuery 1.3.2 but not in jQuery 1.4.4 on IE6:

Pfizer.CC.Client.Biz.API.Service.runOnSuccess = function() {

var dataObject = dataStore.Result;

switch (Pfizer.CC.Client.Biz.API.bizContent) {

case "Startup":

try {

var descendantDataName = "HeaderDate"; var myResult = $(dataObject).find(descendantDataName);

} catch (Error) {







end success function


Change History (4)

comment:1 Changed 12 years ago by [email protected]

sorry, here is my email address for the ticket: [email protected]

comment:2 Changed 12 years ago by anonymous

Note I'm not allowed to download/use jsFiddle in my environment.

comment:3 Changed 12 years ago by dmethvin

Resolution: duplicate
Status: newclosed

As documented at api.jquery.com, $() is not intended to parse XML.

comment:4 Changed 12 years ago by dmethvin

Duplicate of #6693.

Note: See TracTickets for help on using tickets.