Bug Tracker

Modify

Ticket #1890 (closed bug: worksforme)

Opened 6 years ago

Last modified 6 years ago

XML Broken on IE 7 and Opera 9.23 with jquery version 1.2.1

Reported by: lisboa Owned by:
Priority: major Milestone: 1.2.2
Component: ajax Version: 1.2.1
Keywords: Cc:
Blocking: Blocked by:

Description

Code:

alert($("resposta", retorno).text());

where "retorno" is a xml code like this:

<?xml version="1.0" encoding="UTF-8"?>
<retorno>
     <resposta>Você já deu sua avaliação a esse livro.</resposta>
</retorno>

Error message on Opera:

Timeout thread: delay 13 ms Error: name: TypeError message: Statement on line 1: Type mismatch (usually a non-object value used where an object is required) Backtrace:

Line 1 of eval script

if (typeof t != "string") if (o && ! o.nodeType)

o = o
document;

var d = [o], done = [], last; while (t && last != t)

if (t) if (d && o == d[0]) done = E.merge(done, d);

return done;

Line 1 of eval script

return E.find(t, a);

Line 1 of eval script

if (typeof b == "string") var d = [];

for (var i = 0, el = c.length;i < el;i++)

return d;

Line 1 of eval script

var b = E.map(this, (function (a)

{

return E.find(t, a);

} ));

return this.pushStack(/[+>] [+>]/.test(t)
t.indexOf("..") > - 1 ? E.unique(b) : b);

Line 1 of eval script

c = c
document;

if (typeof c == "string")

else

return this.setArray(c.constructor == Array && c
(c.jquery c.length && c != window && ! c.nodeType && c[0] != undefined && c[0].nodeType) && E.makeArray(c) [c]);

Line 1 of eval script

return this instanceof E ? this.init(a, b) : new E(a, b);

Line 1 of eval script

return this instanceof E ? this.init(a, b) : new E(a, b);

Line 184 of linked script  http://dev.kwefele.org/_scripts/kwe.js

var teste = $("resposta", retorno).text();

Line 1 of eval script

if (s.success) if (s.global)

Line 1 of eval script

if (! k && i && (i.readyState == 4
a == "timeout"))

At unknown location

[statement source code not available]


Error message on IE 7:

'undefined' is null or not an object

Attachments

jquery_test.html Download (1.1 KB) - added by davidserduke 6 years ago.
test case
load.xml Download (135 bytes) - added by davidserduke 6 years ago.
test case data 1
load2.xml Download (48 bytes) - added by davidserduke 6 years ago.
test case data 2

Change History

comment:1 Changed 6 years ago by joern

  • Component changed from core to ajax

Changed 6 years ago by davidserduke

test case

Changed 6 years ago by davidserduke

test case data 1

Changed 6 years ago by davidserduke

test case data 2

comment:2 Changed 6 years ago by davidserduke

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone changed from 1.2.1 to 1.2.2

I created the attached test case and it works for me as long as the xml file is saved correctly as UTF-8.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.