Skip navigation.

Opera 10 is too old!

, , ,

Not that Opera have released version 10 (yet!), but it looks like at least one site is going to reject Opera when they do. And where there's one site, no doubt there's hundreds of others :frown: Thankfully, a quick search doesn't quickly turn up anything similar, although there are plenty of other bad examples.

Anyway, here's the problem code:
if (navigator.userAgent.toLowerCase().indexOf("opera") != -1)
{
   isOpera = true;
   i = navigator.userAgent.indexOf("Opera") + 6;
   v = parseInt(navigator.userAgent.substring(i, i+1));
   if(v < 7)
      isOperaOld = true;
}
Need a clue? The substring will return exactly one character - the first digit of the version. Still need help? Version 10 will be identified as version 1.

If you're one of those people irritated at how poorly Opera appears to handle web site scripting - this is one of the bigger reasons. It's straight-out careless programming without thought.

I'll mention that the site in question isn't delivering bugs to just Opera. Their corresponding IE code had the exact same problem, except that IE is quite a bit further away from version 10 than Opera.

The problem remains for Opera:
  1. Opera release version 10.
  2. Web sites stop working in Opera, all other browsers work fine.
  3. "Opera is a crappy browser, never works!"
Yet, where is the bug? What should Opera do about it? Never release a browser with a version where the first digit is between zero and six inclusive? Will the Opera after 9.5 be 70.0? :insane:

UPDATE: Bit late, but Hallvord has blogged on this too: 10 is the one.

My New AvatarOpera 10 is too old! Again!

Comments

alexremen 12. May 2008, 00:18

We could try hexadecimal? Opera A! doesn't work though :frown:

mabdul 12. May 2008, 13:58

Opera X? *g*

and what is about making a "new produkt"?

larskl 16. May 2008, 10:34

Flash actually has the same problem, Flash 10 is recognized as "1" and the site wants > 5 :frown:

mabdul 17. May 2008, 10:16

Opera 2010? *g*

In these days software isn't allowed to reach the version 10 o.O really crazy. 7 years ago i wouldn't wonder, but today...

Andrew Gregory 17. May 2008, 12:47

"Opera A" -> parseInt("A") -> version 0
"Opera X" -> parseInt("X") -> version 0
"Opera 2010" -> parseInt("2") -> version 2

All too old! p:

Please comment using a more recent browser! :D

mabdul 17. May 2008, 18:52

o.O

simo93 14. June 2008, 11:13

simple.
have opera auto-detect that code and have it return a nine.

_Grey_ 14. June 2008, 11:32

@simo93: Yeah, simple as that. Except it's not simple.

anime4christ 18. June 2008, 01:00

How about Opera 9+1.0 ? P:

jabcreations 14. July 2008, 18:57

I've got a better idea: broken web pages should BREAK! Genius idea eh? I hear the entire software community has to deal with issues on rare occasion.:whistle:

EagleMKD 5. December 2008, 11:20

The ID should be 'Opera 7 (but this is Opera 10, we just lie, y'know, just for you to let us in)' :wink:

serious 5. December 2008, 17:51

I agree with jab..., other software developers have to fix their bugs too, why shouldn't webpage authors?

RachidNL 5. December 2008, 22:07

If browser.js can rewrite the User Agent string, then at least there's a workaround for the big sites that mess up badly... Not sure if browser.js can't already do this though.

Owyn999 10. December 2008, 16:00

Yup we just got the alpha build of Opera 10 and sure enough without faking the websites out by identifying as Internet Exploder or Firefox Yahoo for example tells you that you are missing out on the full experience... hmmm imagine a large website that was sloppily built...

Chas4 22. December 2008, 03:02

Opera 9.63? :wink:

what about Opera 0.10 ?

cds56 5. May 2009, 00:32

Im appalled, Opera 10 is by far the fastest and most useful browser, with the least crashes Ive found, and Ive gone out of my way to download everything, although netscape 9 is good too, it will get outdated fast now.

Chas4 5. May 2009, 01:55

Is it just me or is Opera 10 Alpha very stable for an alpha?

AgentCROCODILE 9. May 2009, 09:25

Originally posted by Chas4:

Is it just me or is Opera 10 Alpha very stable for an alpha?

No - Opera is very stable for an alpha.

Ironically that forbidden browser from Redmond is stupid and unstable, yet it is a "stable release" according to them.

AgentCROCODILE 9. May 2009, 09:27

If in doubt, let's have an option to "Mask as Opera 9.6"

Chas4 9. May 2009, 18:31

"stable release" according to them.

good one, I have trouble tryin to crash the stable release and the latest Alpha build, seems like the forbidden one rerely likes to inovate

meaneye-rcf 3. June 2009, 19:53

Anyway... I don't know have you noticed, but recent Opera 10 Beta identifies as Opera 9.80

So, who knows... :D Maybe they thought about that :smile:

Chas4 3. June 2009, 20:00

Changes in Opera’s user agent string format
http://dev.opera.com/articles/view/opera-ua-string-changes/

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

Download Opera, the fastest and most secure browser
November 2009
S M T W T F S
October 2009December 2009
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30