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

Proposal of @ua

From: Nikodem <freyjkell@gmail.com>
Date: Thu, 18 Oct 2007 16:45:10 +0200
Message-ID: <47177176.1050601@gmail.com>
To: www-style <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
}

I wonder mostly about IE (other UAs are generally good), because I don't 
wanna see anymore such shit like:

<!--[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

My proposal, even if will be issued in IE 99, can clear CSS code.

-- 
Nikodem
JID: nikn@jabber.org
Received on Thursday, 18 October 2007 14:45:54 GMT

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