[TYPO3-templavoila] Using conditional comments in TV
Jan Wulff
messages at janwulff.de
Tue Jun 6 12:05:59 CEST 2006
Hi Dmitry,
>> This is not really true. You are much more likely to encounter the
>> /really/ weird IE bugs /while/ developing according to standards.
> I did many cross-browser layouts and never had to use conditional comments.
If you're ignoring IE5 and don't use floats (guillotine bug, double
float-margin bug, escaping floats bug, ...) it is possible to do modern
layouts without hacks, but even then you have to live with line-height and
list bugs. Of course you don't have to use conditional comments, but aren't
they a lot better than the usual hacks?
>> 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.
> IE5 is dead. According to my statistics, less than 2% of people use it.
> So I ignore MSIE 5. For MSIE6 a combination of "width !important",
> min-width and width does the trick perfectly.
I wish it would be dead, but the statistics of most of my sites (and for
example of w3schools.com) are listing the IE5 (and 5.5) around 5%. A lot
customers are not willing to lose 5% of their users, when even modern
layouts can be adapted to the IE5 with some hacks or better, conditional
comments.
>> 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:
> So, you have to do it with TS. As I said, it is not a tv limitation but
> limitation of html parser in typo3 core.
I would be fully satisfied to do it with TS, but as I wrote before, the TV
output is always the last one in the html head. If I could set the
conditional comments via TS after the TV output, everything would be fine.
Is there a way I have overlooked? Thanks.
Best Regards
Jan
More information about the TYPO3-project-templavoila
mailing list