Back to main page

IE 6 and type "unknown"

I've only tested this in IE 6 and Firefox 1.5.

IE returns "unknown" as the type of the getAttributeNode function when working with an Msxml2.XMLHTTP object. Shouldn't it return "undefined"?
Firefox returns "function" as expected (with an XMLHttpRequest object).

For XML document element:  
For HTML element:  

The only thing I can think of to get around this is to check if node.getAttributeNode != "unknown" every time I want to make sure the object is defined.