[thelist] Conditional Statements -- any downside?

liorean liorean at gmail.com
Sun Oct 21 12:30:38 CDT 2007

On 21/10/2007, Jon Hughes <jon at phazm.net> wrote:
> Does anyone have anything against conditional comments?

Well, mostly this:
- NEVER target future browsers with it. If you tested for IE6 by
checking if the browser version was 6 or higher, then IE7 would also
get that code, and IE7 could break a lot of IE6 specific quirks.
Always make sure you cover the versions you have tested only, and not
any future ones.

But then again, that goes for all hacks/filters.
David "liorean" Andersson

More information about the thelist mailing list