W3C home > Mailing lists > Public > www-style@w3.org > October 2007

Re: Proposal of @ua

From: Jens Meiert <jens.meiert@erde3.com>
Date: Thu, 18 Oct 2007 17:57:55 +0200
Message-ID: <20071018155755.179390@gmx.net>
To: www-style@w3.org

> @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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:55 GMT