[Wylug-help] Browser Detection (and HTML loops)

Smylers Smylers at stripey.com
Mon Nov 22 18:31:55 GMT 2004


Dave Fisher writes:

> Hell, even the standard itself changed the box model between CSS2 and
> CSS2.1 !

Yes, but that isn't actually something to complain about.  It turns out
that none of the rendering engines were actually obeying version 2, so
version 2.1 was released as a pragmatic way of having a standard that's
based on reality.

> I think I am aware of most of the difficulties, including the often
> well-intentioned, but misguided practice of user agent spoofing.

I'm not sure how misguided it is, especially if done well.  For example
a site that only works in 'IE' usually checks for the string "MSIE" in
there.  So 'Opera' in 'IE'-spoofing mode includes that string -- but it
still leaves "Opera" in there too.  So by checking for 'Opera', gecko,
and so on before 'IE' you avoid most of the spoofing problems.

Smylers





More information about the Wylug-help mailing list