Skip to main content

Bug Tracker

Side navigation

#5279 closed bug (fixed)

Opened September 21, 2009 05:38PM UTC

Closed December 09, 2009 06:44AM UTC

opera version is incorrect or browser.version is wrong

Reported by: hm2k Owned by:
Priority: minor Milestone: 1.4
Component: core Version: 1.4a1
Keywords: opera, version, browser, layout engine Cc:
Blocked by: Blocking:
Description

I understand that jQuery.browser is now being depreciated, but while it still exists in jquery and is being used for backwards compatibility and plugins it should be maintained.

What I am going to be talking about here is the jQuery.browser.version...

(userAgent.match( /.+(?:rv|it|ra|ie)[\\/: ]([\\d.]+)/ ) || [0,'0'])[1]

As you can see it has 4 checks...

rv=Revision of the Gecko "layout engine".

it=Version of the WebKit "layout engine".

ra=Version of Opera, NOT Presto it's layout engine.

ie=Version of Internet Explorer, but NOT Trident it's layout engine.

Not only that but Opera 10 has two version numbers, one at the start which is 9.80, and one at the end which is 10.00.

As per this article here: http://dev.opera.com/articles/view/opera-ua-string-changes/

There are thought to be no more than 20 notable (text-based or graphical) layout engines in the world.

See: http://en.wikipedia.org/wiki/List_of_layout_engines

So I ask, is this actually meant to be engine.version or is browser.version simply wrong?

I imagine it depends on usage or perhaps both should be supported.

Attachments (0)
Change History (2)

Changed September 24, 2009 02:26AM UTC by dmethvin comment:1

How can 20 layout engines cause so much trouble?!

See also #2661 which is being used to consolidate jQuery.browser issues.

Changed December 09, 2009 06:44AM UTC by john comment:2

resolution: → fixed
status: newclosed
version: 1.3.21.4a1