[TYPO3-templavoila] Using conditional comments in TV

Christopher bedlamminusspamhotel at gmail.com
Mon Jun 5 18:30:42 CEST 2006


Dmitry Dulepov wrote:
> Hi!

<snip>

> If you create template according to standards, you will not 
> need conditional comments.

This is not really true. You are much more likely to encounter the 
/really/ weird IE bugs /while/ developing according to standards.

Given the number of _fixable_ rendering bugs in various versions of IE 
Windows, you will eventually need to use conditional comments--they are, 
for example, the simplest way to deliver a separate box-model stylesheet 
to IE 5, or to set 'width' for IE while using 'min-width' for other 
browsers.

They're also nice to use because they rely on the targeted browser 
itself to deliver alternate info--no need for complex browser-sniffing 
tools or even TS conditions.

Not that I think the inability to use them in the Templavoila GUI is a 
big problem; as everyone always points out, you can just stick them in 
the TS:

page.headerData.5 = HTML
page.headerData.5 {
   value = @import url(IE_5.css);
   value.wrap = <!--[if IE 5]><style type="text/css"> | </style><![endif]-->
}


-Christopher



More information about the TYPO3-project-templavoila mailing list