[TYPO3-dev] BrowserInfo going beserk...
Jigal van Hemert
jigal at xs4all.nl
Thu May 20 09:02:53 CEST 2010
Steffen Gebert wrote:
> Am 15.05.2010, 19:30 Uhr, schrieb Jigal van Hemert <jigal at xs4all.nl>:
>
>> While checking the styling of the Install Tool I noticed that the
>> browsers weren't detected correctly. So I collected the output of
>> t3lib_utility_Client::getBrowserInfo():
>
> I had no problems detecting IE7/8
I believe you :-)
The problem is that the user agent string isn't as simple as we would
like. Depending on the installation, update history, etc. it can take
many forms. Check [1] for a collection of user agent strings and how the
tool I found would detect them (it's still not 100% full proof).
For some reason my installation of IE8 has multiple "compatible; MSIE
x.y" parts in the user agent. getBrowserInfo() simple takes the last
detected browser signature as the correct browser and version. This is
in certain cases (Chrome, some IE installations, ...) incorrect.
For the Install Tool I already proposed a change to Patrick Broens to
simply use conditional comments for the IE6/7 CSS, but this problem
still affects the Typoscript conditions for browser type and version.
Tot test t3lib_utility_Client::getBrowserInfo() we could use the list at
[2] for example.
[1] http://chrisschuld.com/proj/Browser/test.php
[2] http://chrisschuld.com/proj/Browser/useragents.txt
--
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-dev
mailing list