[pmwiki-users] Re: meta and inline-styles

Patrick R. Michaud pmichaud at pobox.com
Fri Jul 22 14:12:23 CDT 2005


On Sat, Jul 23, 2005 at 12:56:24AM +0530, V.Krishn wrote:
> Since pmwiki allows inline styling eg. in tables and divs,
> Is it important that the following be included in the <head>?
> 
> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

I don't know that it's critically important; the specs recommend
that user agents know what to do when it's omitted.

However, it is always nice to follow the standards as strictly
as we can, and we certainly have several ways to do it.
We can do it programmatically, as in

    $HTMLHeaderFmt['css-type'] = 
      "<meta http-equiv='Content-Style-Type' content='text/css' />";

or we can place it directly into the $HTTPHeaders with

    $HTTPHeaders['css-type'] = "Content-Style-Type: text/css";

or we can leave it up to skin template creators to do it (and
add it to PmWiki's default skins).


I suspect that most of the PmWiki skin designers will continue
to request that PmWiki's defaults not make a bunch of output
related settings by default, so therefore it seems like we should
leave it up to the skins to include this tag as appropriate.

Other opinions welcomed.

Pm




More information about the pmwiki-users mailing list