v1.2; exception is thrown in attempt to dump XMLDOM object in IE browser
Closed this issue · 0 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
$.ajax({url: "root.xml", dataType: "xml"})
.success(function (data, textStatus, xhr) {
$.dump(data, 1, "data");
});
What is the expected output?
IE browser doesn't iterate thru the properties of XMLDOM object so empty object
dump should be displayed
What do you see instead?
A javascript exception "Object doesn't support this property or method" at line
38:
if (/^off$/i.test(obj)) { __jqdump__dump_OFF = true; }
The bug rises at $.dump(...) function usage under described sircumstances,
$("selector").dump(...) not affected.
The issue is fixed in v1.3 by changing target line to:
if (typeof(obj) == "string" && /^off$/i.test(obj)) { __jqdump__dump_OFF = true; }
Original issue reported on code.google.com by CAlexBlock@gmail.com
on 12 Jan 2012 at 1:14