Re: Proposal of @ua

> @ua ie==8
> {
>  // hacks for Internet Evil 8
> }
> @ua ff<=3
> {
>  // hacks for Firefox 3 or older
> }
> @ua opera || ff
> {
>  // hacks for Opera and Firefox
> }
> @ua ff && ie
> {
>  // always ignored
> }
> 
> <!--[if IE]><link rel="stylesheet" href="ie-sux.css"/><![endif]-->
> <![if !IE><link rel="stylesheet" href="non-ie-rox.css"/><![endif]>
> <!-- non-commented <![if ...]> is also incorrect HTML code -->
> <!--[if IE]><script src="re-styler.js"></script><![endif]-->
> * html div#123
> d\iv#abc

No, please, never.

This is manifested maintainability hell (actually, I never saw it that obvious yet). Rather sue implementors to conform to specifications …

-- 
Jens Meiert
http://meiert.com/en/

Received on Thursday, 18 October 2007 15:58:11 UTC