Skip navigation.

ODIN Blog

Opera Developer Network

Are you a browser sniffer? Get your site ready for a new smell

,

Opera released an alpha of Opera 10 earlier this month. One reason for alpha releases is to find and fix potential problems and bugs. These can either be browser bugs that we have to fix or site bugs where the site’s developers need to fix. Opera 10 has uncovered a flaw in many browser sniffer scripts, that causes the script to detect Opera 10 as Opera 1. This is because they only detect the first digit of the version number. My colleague Hallvord Steen has more information in his blog post 10 is the one. I'd recommend anyone that developers web sites to download the latest alpha and check their sites for this and other potential issues, before Opera 10 goes final.

This issue has caused problems on many big sites from Microsoft Live to Bank of America. If it isn't fixed the sites will also likely stay broken for when browsers like IE 10 get released in a number of years time. Unfortunately we are the ones leading the pack into this particular issue.

Opera 9.63 Chinese Ver. is out (and you can try it too)State of the mobile Web Report

Comments

AOTEAROAnz 30. December 2008, 21:42

:up:

FataL 30. December 2008, 22:34

I promice you, I will never use sniffers! :D
Just fix finally this annoing letter spacing bug. :wink:

dstorey 31. December 2008, 00:25

FataL: Is there a bug report on that issue?

Chas4 31. December 2008, 02:07

My question would be will IE even make it to version 10? :wink:

I will spread the word :smile:

FataL 31. December 2008, 05:25

dstorey: most likely it was reported (I don't remember the bug #)
See this related forum tread.

serious 31. December 2008, 09:55

I don't get why there is no js-object for this where a browser broadcasts its name and version. then there wouldn't be a "need" for ua-string-analysis - at least in javascript - anymore.

don't misunderstand me, browser sniffing is a bad thing - esp if it simply blocks the browser "just cause", but sometimes it is necessary to work around browser specific bugs, so there should also be a clean solution for this.

FataL 31. December 2008, 17:47

Serious, sometimes you may try to use bug detection instead version sniffing.

FataL 31. December 2008, 19:54

BTW, I just recalled that Opera is not a first browser with number 10 in version.
Amaya is already version 11! :wink:

Happy New Year to everyone! :drunk:

serious 31. December 2008, 20:12

@FataL: jep, that's true. but bug detection takes time and ressources (both at exectime and in production) and the decision is often to keep initial costs at a minimum - and also not having to think about making a working bug detection algorithm. well, I'm glad I'm not a webdeveloper but into java. one vm to rule them all :wink:

ps: happy new year you all. I'm outa here making my way to a party bye :hat: :hat: :drunk:

Mickeyjoe_irl 31. December 2008, 20:35

So what does Opera smell like :confused:

We already know IE stinks :lol:

dstorey 1. January 2009, 18:55

Anonymous 22. January 2009, 04:39

rksr3333 writes:

opera is very fast in browsing world. beyond challenge.but my bad luck i had my blog called "LIFE LINE IS LOVE " ,WITH OUT ANY MISTAKE FROM MY SIDE SUDDENLY BANNED.REQUESTED MANY TIMES TO REVERT IT. BUT FAILED. I LAST RUPEESS 33000/- IN INDIAN MONEY VALUE DUE TO THE BAN. tHE ADVERTISER DID NOT PAID TO ME. ONCE AGAIN I HUMBLY REQUEST YOU AND THE TEAM TO RELEASE THE BAN AND TO MAKE ACTIVATE THE BLOG LIFE LINE IS LOVE."PLEASE DEAR.
SINCERELY R.K.SUNDARARAJAN.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies