Bug Tracker

Modify

Ticket #5279 (closed bug: fixed)

Opened 4 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 4 years ago by dmethvin

How can 20 layout engines cause so much trouble?!

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

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Version changed from 1.3.2 to 1.4a1
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.