Re: NS 4 sniffing?
by "Hilma" <Hilma(at)hilma.freeserve.co.uk>
|
|
> Netscape 4.x doesn't support the @import rule in CSS. Therefore, if you
put
> all of your NS4 unfriendly rules in an @imported CSS NS4 won't see them
:-)
Ah, got it - I hadn;t reached it yet when i replied :-)
So when (other than in this case) should i use the @import over <link> for a
css?
I have seen it before, but not commonly used - hey, maybe i could look that
one up!
Currently, i've set a variable "DOM", depending on whether GetElementById
works, and check that for NS4 exclusions:
----------------------------------------------------------------------------
-------------
//Well Bob, Can You Do It?
var DOM
DOM = document.getElementById?true:false;
if(navigator.userAgent.indexOf("Opera")>0 ||
navigator.userAgent.indexOf("MSIE4")>0) DOM=false;
----------------------------------------------------------------------------
-------------
(Code that i didn;t write -but i know Opera has such limited support of the
DOM (in the bits i want, at least) i treat it as "no support".
Comments on this approach welcome :-)
hilma
-x-----
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA