What does IE9 return for new ActiveXObject("Msxml2.DOMDocument.4.0");?
-
Monday, November 19, 2012 7:17 AM
Can anyone tell me why the following javascript does not cause an error in IE9 Win7 64bit?
var objXML = new ActiveXObject("Msxml2.DOMDocument.4.0");
Does IE9 fall back to msxml3 when this is invoked or does it use msxml6 in some kind of backward compatible mode?
I do not have msxml4 installed except the one in the SysWow64 directory which I'm pretty sure is not used by IE9.
Thanks in advance for any help.
All Replies
-
Monday, November 19, 2012 7:41 PM
Ok, I have the answer. *egg on face*
Unless you run 'Internet Explorer (64-bit)' specifically on Windows, you are running the 32-bit version and therefore have access to msxml4 from the SysWOW64 directory.
The Javascript above breaks on IE 64-bit and msxml4 is not 64-bit compatible.
If you want to know what msxml version your browser is using follow these direction
support.microsoft.com/kb/296647?wa=wsignin1.0
- Edited by WilliamBoyd Monday, November 19, 2012 7:42 PM
- Marked As Answer by WilliamBoyd Tuesday, November 20, 2012 12:37 AM
-
Tuesday, November 20, 2012 2:36 AMModerator

