Side navigation
#1890 closed bug (worksforme)
Opened November 05, 2007 01:15PM UTC
Closed December 16, 2007 11:59AM UTC
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: | ||
Blocked by: | Blocking: |
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 (3)
Change History (2)
Changed December 06, 2007 08:11PM UTC by comment:1
component: | core → ajax |
---|
Changed December 16, 2007 11:59AM UTC by comment:2
milestone: | 1.2.1 → 1.2.2 |
---|---|
resolution: | → worksforme |
status: | new → closed |
I created the attached test case and it works for me as long as the xml file is saved correctly as UTF-8.