Klaus Hartl wrote:

Hi all,

a few plugins use some kind of check for IE 6, I for example use:

$.browser.msie6 = $.browser.msie && ($.browser.version && $.browser.version < 7 || /6.0/.test(navigator.userAgent));

The second check is required for compatibility with jQuery 1.1.2 and below, $.browser.version was introduced in jQuery 1.1.3.

Can somebody please confirm, that this check fails in Windows Vista (I don't have Vista), as the userAgent contains "Windows 6.0" here?

In that case, it's better to use:

/MSIE 6.0/.test(navigator.userAgent)


Thank you, Klaus


Hm, Google is our friend:
http://blogs.msdn.com/ie/archive/2005/04/27/412813.aspx

Answering my own question, yes, that check fails:

>>> /6.0/.test("Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)")
true



-Klaus

Reply via email to