Re: [SMARTY] standart plugin(s) suggestion
| From: | Andr� Rabold | Date: | Wed, 19 Feb 2003 10:31:07 +0000 |
| Subject: | Re: [SMARTY] standart plugin(s) suggestion | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7862@lists.php.net to get a copy of this message | ||
Servus nochmal, :-)
> Hmm, when looking at the sites of the big browser creators (at Microsoft
and at
> Mozilla) the situation is as follows:
> - Microsoft does always talk about "4.0", not about "4.01" (maybe
because
> the pages were written before 4.01 was out?)
> - Mozilla knows about both DOCTYPES and makes no difference
> - the w3 organization only talks about "4.01"
> So what to do?
> I think if somebody wants to use your plugin, the plugin should look at
the string
> and replace "4.0" with "4.01". What do you think ?!
Okay, now all single numbers (2,3,4) are replaced with the correct versions
(2.0, 3.2, 4.01). Other versions are not supported because I cannot find any
information if they ever where official. If you want you can set version =
"5.00".
Then it will be outputted but no DTD etc. is set by default for obvious
reasons.
> Another thing I found at
http://www.htmlhelp.com/tools/validator/doctype.html
:
> It seems, that the official DCOTYPE setting for HTML v3.2 is that:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
> and for HTML v2.0 it is that:
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
> I don't know if there is really anybody which still uses such old
versions,
> but who knows :-)
Yeah, you're right. Done.
> It's OK to have the Transitional as default, that's not what I wanted to
suggest.
> I meant that if somebody calls the plugin with
> $dtd = true, $html="HTML" and $version="4.01" and $type=""
> then you should produce a strict-DTD string.
Mhmm... but instead of calling it with $dtd=true, $xhtml=false, $version=4
and
$type="" it would be alot simpler to use {html_doctype type="Strict"} ;-)
> BTW: I'm not sure if the string "Strict" as type is officially allowed, at
w3c I found the following:
>
> http://www.w3.org/TR/REC-html40/struct/global.html#version-info
> and there the string
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
> is the official DOCTYPE for strict DTD-settings (that means without
"Strict" in the string).
You're right again. Haven't recognized this :-/
I didn't though it could get such complicated 8-)
bye,
André