开发者

Why does the W3 Schools browser check show the wrong browser version for my copy of Internet Explorer 8?

I've got Internet Explorer 8 installed on my computer, but when I do this browser check on W3 Schools it says that it’s IE6.

  • I already checked the compability button,
  • I also checked if internet sites, etc runs in compability mode,
  • If I press the F1开发者_如何学运维2 button, Browser modus = IE8, Documentmodus is also IE8

I don't understand it, is this a bug or what?

Please help me.


Are you sure you're not confusing the versioning with the browser name?

For example, IE6 is called '6', but the actual version shows up as 4.0:

Browser Version: 4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)


Curious as to how you are checking- have you tried the IE way? It returns undefined for anything not IE, or the mode in use on the page if it is IE

 navigator.IEmode= (function(){
    /*@cc_on
    @if(@_jscript_version> 5.5){
        return document.documentMode? document.documentMode:
        window.XMLHttpRequest? 7: 6;
    }
    return (@_jscript_version);
    @end
    @*/
})()
alert(navigator.IEmode)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜