On 10/6/05, Al Sparber <[EMAIL PROTECTED]> wrote: > From: "Thierry Koblentz" <[EMAIL PROTECTED]> > > > > Christian Heilmann wrote: > >>>> It is an OK idea, however writing out pre 5 stylesheets via > >>>> JavaScript is overkill IMHO. I have yet to encounter a project > >>>> that > >>>> would have a > > > I don't follow you here. > > One does not have to write a sheet for old browsers, but if one had > > to, I > > believe using a script as I do in this article is a good way to do > > it. > > I agree with you that it's an excellent way. That script technique is > hard for some people to get their heads around. I posted a similar > solution (the script, not your very complete article) last year and I > had the hardest time getting people to understand that the script was > absolutely failsafe. Good job on the article.
I do understand the idea, however, I dislike the idea of adding a JavaScript containing document.write and mixing structure and behaviour layer to support outdated browsers with bad CSS support to begin with. The redeeming element is that the document.write only happens on old browsers, as otherwise it would not be possible with properly served XHTML. The practical upshot of this however is that a script element also prevents the FOUC [1], so it might be an evil one can live with. The FOUC bit would be good to add to the article. [1] http://www.bluerobot.com/web/css/fouc.asp ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
