[Pmwiki-users] CSS Layouts not working in Mozilla/Netscape
Patrick R. Michaud
pmichaud
Fri Apr 16 10:42:03 CDT 2004
On Thu, Apr 15, 2004 at 10:21:31AM -0400, Monte Padget wrote:
> I discovered why my CSS wasn't loading. In the .tmpl file the first
> thing listed is:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> but is should be:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN",
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> Note the comma between the doctype declaration and the system
> identifier.With the comma, it works in Mozilla, Netscape, and IE.
No way. None of the HTML or XHTML specifications I've seen include a
comma between the declaration and system identifier. In particular, the
W3C recommendations do not have them, see
http://www.w3.org/TR/xhtml1/#strict
http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.1
What is likely happening is that adding the comma to the DOCTYPE
specifier is causing it to become an invalid DOCTYPE specification,
which causes many browsers to enter "quirks mode" (i.e., compatibility
with 4.x browsers that were largely non-conformant with CSS).
At any rate, unless you can find a reference to indicate otherwise,
I think the DOCTYPE definitely should NOT have a comma after the formal
public identifier.
Pm
More information about the pmwiki-users
mailing list