[Typo3-dev] Browser detection bug - update

Kasper Skårhøj kasper at typo3.com
Tue May 11 10:53:18 CEST 2004


Hi Folks.

I just fixed the browser detection bug. I simply rolled back to the
previous state of the code which had worked for years.

before doing that I spend a lot of time investigating browser strings.
My intension was to beef up the detection to support all kind of new
browsers. Eventually I gave up. Such a detection script would be HUGE.
It wouldn't even be backwards compatible because for a long time TYPO3
has reported Mozilla/Netscape/Firebird/Firefox all as "netscape". Change
that to four different strings would be backwards incompatible. That
would just break sites again - even if the detection is more correct.
And what about Opera? When it identifies itself as MSIE, should we see
it as MSIE OR as Opera?

It's a jungle and I just don't care anymore. In particular because the
trend is that browser detection is  becoming less important with
standards compliance more widely used.

Anyways, if anyone disagrees I would maybe be willing to let you detect
a browser with a regex. Anything else seems to be bloated approaches. I
just don't have energy to dig into this.



-- 
Best regards

- kasper

--------------------
It's not a bug, it's a missing feature.






More information about the TYPO3-dev mailing list