IE 9 in IE8 Browser Mode/Document mode supports SVG

internet explorerinternet-explorer-8internet-explorer-9raphael

I just upgraded to IE9 to do cross browser compatibility testing of my site, which uses Raphael.js. I know my site and its Raphael.js graphics work in IE8 proper using VML, but for some reason, when I set IE9 to have IE8 Browser Mode/Document Mode, Raphael.js tries to use SVG instead of VML. This doesn't happen when I set IE9 to IE7 Browser Mode/Document Mode; that is, Rapahel.js uses VML. Why does IE9 think that IE8 supported SVG?

Best Answer

I know nothing about Raphaël, but I do know that IE9 reports its JScript Version incorrectly. No matter what version you have Browser Mode/Document Mode set to, @_jscript_version returns 9. If Raphaël decides whether to use VML or SVG based on @_jscript_version, it could cause trouble.