Skip to main content

Bug Tracker

Side navigation

#7854 closed bug (duplicate)

Opened December 28, 2010 12:42PM UTC

Closed December 28, 2010 03:24PM UTC

Last modified December 28, 2010 03:24PM UTC

$(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:
Description

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

Here is the AJAX call:

Pfizer.CC.Client.Biz.API.Service.ajaxManager.add({

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() {

Pfizer.CC.Client.Biz.API.Service.runOnFailure();

}

});

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>

<Parameter>None</Parameter>

</ParameterCollection>

<PayLoadCOllection>

<PayLoad>

<HeaderDate>November 10</HeaderDate>

</PayLoad>

</PayLoadCOllection>

<Status>Success</Status>

<NotificationCollection>

<Notification>All Requests Succeeded</Notification>

</NotificationCollection>

</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) {

alert(Error);

}

break;

default:

break;

}

// end success function

};

Attachments (0)
Change History (4)

Changed December 28, 2010 12:45PM UTC by davidekarasek@gmail.com comment:1

sorry, here is my email address for the ticket: davidekarasek@gmail.com

Changed December 28, 2010 12:46PM UTC by anonymous comment:2

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

Changed December 28, 2010 03:24PM UTC by dmethvin comment:3

resolution: → duplicate
status: newclosed

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

Changed December 28, 2010 03:24PM UTC by dmethvin comment:4

Duplicate of #6693.