Side navigation
#2661 closed bug (fixed)
Opened April 06, 2008 03:54PM UTC
Closed December 09, 2009 06:44AM UTC
Last modified March 14, 2012 05:39AM UTC
Browser detection IE (and possibly other browsers)
Reported by: | cybernetix | Owned by: | flesler |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | core | Version: | 1.4a1 |
Keywords: | browser detection | Cc: | |
Blocked by: | Blocking: |
Description
If MEGAUPLOAD or similar plugin is installed jQuery.browser returns wrong IE version.
For example userAgent string for IE7 with installed MEGAUPLOAD plugin is:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; MEGAUPLOAD 2.0)
jQuery.browser.version returns 6 instead of 7
First plus (+) should be removed from regExp and than it will work fine. So, this line:
(userAgent.match( /.+(?:rv|it|ra|ie)[\\/: ]([\\d.]+)/ ) || [])[1]
should read:
(userAgent.match( /.(?:rv|it|ra|ie)[\\/: ]([\\d.]+)/ ) || [])[1]
Attachments (0)
Change History (16)
Changed May 06, 2008 03:27AM UTC by comment:1
owner: | → flesler |
---|---|
status: | new → assigned |
Changed May 14, 2008 08:29PM UTC by comment:2
milestone: | 1.2.3 → 1.2.4 |
---|
Changed July 03, 2008 03:26AM UTC by comment:3
The solution you posted doesn't actually work with Opera. Here's one that passes all the jQuery tests (thanks Brad Greenlee!):
/.+?(?:rv|it|ra|ie)[\\/: ]([\\d.]+)(?!.+opera)/
Changed January 14, 2009 04:30AM UTC by comment:4
See also #3169 (dup but essentially agrees on the regexp)
Changed January 15, 2009 04:42AM UTC by comment:5
Changed January 23, 2009 02:53PM UTC by comment:6
Has anyone looked into this? It's clearly related, and his patch seems to work...
http://jamazon.co.uk/web/2008/03/14/jquerybrowserversion-doesnt-recognise-ie7/
http://jamazon.co.uk/web/2008/03/17/thickbox-31-ie7-positioning-bug/
Changed January 23, 2009 02:54PM UTC by comment:7
cross-referencing in case someone on the WP end submits a patch:
Changed March 18, 2009 03:07AM UTC by comment:8
Changed June 05, 2009 02:17AM UTC by comment:10
Also dup #4722.
Changed June 16, 2009 01:12AM UTC by comment:11
Boop boop be dup #4754.
Changed September 24, 2009 02:24AM UTC by comment:12
See also #5279.
Changed September 24, 2009 03:48AM UTC by comment:13
See also #5127.
Changed September 30, 2009 10:27AM UTC by comment:14
Changed November 04, 2009 05:08PM UTC by comment:15
Changed December 09, 2009 06:44AM UTC by comment:16
milestone: | 1.2.4 → 1.4 |
---|---|
resolution: | → fixed |
status: | assigned → closed |
version: | 1.2.3 → 1.4a1 |
Same as #2784