Dave Methvin schrieb: >> I think IE is trying to _call_ elem.getAttribute for some >> reason, must be a bug in the COM typelib for the XML control. > > To answer my own thought, I remembered it's a problem with the way many > external COM controls work because they're not native Javascript objects. > This post explains the situation a bit: > > http://blogs.msdn.com/ericlippert/archive/2004/09/20/231852.aspx > > Although IE cooperates with Javascript, it seems like MSXML does not. As a > result, Javascript ends up trying to call the method rather than just seeing > if it exists. > > The take-away for jQuery: When checking for a method in a non-native COM > object (MSXML, XMLHTTPRequest, others?) use typeof(x.method)=="undefined" > and not x.method==undefined . In a quick search I didn't find any other > cases of this in jQuery.js, as long as you don't jQuery.extend() a > non-native COM object--and you shouldn't!
Wow, thanks Dave! Good catch! -- Klaus _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
