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 sad 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? scared

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

My New AvatarOpera 10 is too old! Again!

Comments

Alexander Remenalexremen Monday, May 12, 2008 12:18:56 AM

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

mabdul Monday, May 12, 2008 1:58:24 PM

Opera X? *g*

and what is about making a "new produkt"?

larskl Friday, May 16, 2008 10:34:43 AM

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

mabdul Saturday, May 17, 2008 10:16:59 AM

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 Saturday, May 17, 2008 12:47:57 PM

"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! bigsmile

mabdul Saturday, May 17, 2008 6:52:26 PM

o.O

simo93 Saturday, June 14, 2008 11:13:02 AM

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

_Grey_ Saturday, June 14, 2008 11:32:44 AM

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

Alekseyanime4christ Wednesday, June 18, 2008 1:00:38 AM

How about Opera 9+1.0 ? p

John A. Bilicki IIIjabcreations Monday, July 14, 2008 6:57:59 PM

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

Miladin MiladinoskiEagleMKD Friday, December 5, 2008 11:20:16 AM

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 Friday, December 5, 2008 5:51:05 PM

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

RachidRachidNL Friday, December 5, 2008 10:07:35 PM

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 Wednesday, December 10, 2008 4:00:57 PM

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...

Charles SchlossChas4 Monday, December 22, 2008 3:02:59 AM

Opera 9.63? wink

what about Opera 0.10 ?

chris logancds56 Tuesday, May 5, 2009 12:32:17 AM

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.

Charles SchlossChas4 Tuesday, May 5, 2009 1:55:33 AM

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

AgentCROCODILE Saturday, May 9, 2009 9:25:40 AM

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 Saturday, May 9, 2009 9:27:02 AM

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

Charles SchlossChas4 Saturday, May 9, 2009 6:31:10 PM

"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

MeanEYEmeaneye-rcf Wednesday, June 3, 2009 7:53:16 PM

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

So, who knows... bigsmile Maybe they thought about that smile

Charles SchlossChas4 Wednesday, June 3, 2009 8:00:35 PM

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

Aron Ferdinand8654374oleg Monday, November 22, 2010 5:20:29 PM

omg

Marc BitenMaradada Monday, November 22, 2010 5:43:30 PM

o.O

Charles SchlossChas4 Friday, November 26, 2010 3:51:55 PM

What happens when Chrome hits 10 sometime soon

Michael Hendersonmichreson Thursday, January 6, 2011 10:01:33 AM

Intresting, thanks

Write a comment

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

February 2012
S M T W T F S
January 2012March 2012
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