Hello,
I have some code to check if my xml results are an error:
var err = Slick.search(result, 'error');
IE 8 throws: "Object Required" on line 2048, char 2 (in mootools.1.3
http://mootools.net/core/7c56cfef9dddcf170a5d68e3fb61cfd7)
The error is here:
local.isXML = function(document){
return (!!document.xmlVersion) || (!!document.xml) ||
(Object.prototype.toString.call(document) === '[object XMLDocument]')
||
(document.nodeType === 9 && document.documentElement.nodeName !==
'HTML');
};
All of the boolean checks fail in that sequence until the last where
document.documentElement.nodename seems to be the offending bit.
the value of document.documentElement is null.
The IE debugger lists its type as IXMLDOMElement.
typeof returns object
Mootools typeOf() returns 'null'.
According to the IE debugger document is of the type IXMLDOMDocument2
and seems to be a perfectly well formed XML Document. The code is
working fine in FF and Chrome.
Any idea why I might be getting this error? Is it a slick bug, or
something I'm doing? The raw string that is returned along with the
XML document looks like this:
https://gist.github.com/753229
Thanks,
Justin