[ZPT] DOCTYPES in Page Templates
Geir Bækholt · Plone Solutions
lists at elvix.com
Tue May 11 14:38:02 EDT 2004
On Tue, 11 May 2004 00:33:28 -0700 GMT
Jamie Heilman asked the ZPT mailinglist about the following:
> Alexander Limi wrote:
>> (notice the total lack of spaces to conform with the spec, which states
>> that the doctype has to be on the first line, without leading spaces)
> Which spec? Please cite. Given that you may include a XML declaration
> in a valid document I'm inclined to say your assertion that doctype
> has to be first is either bogus or out of date.
Correct, Jamie, it does not have to be on the first line according to
the spec.
according to w3c - XHTML1.0 , which is what Plone attempts to conform to,
"There must be a DOCTYPE declaration in the document prior to the root
element"
- But - Browser redering-engine implementations (Both IE and Moz IIRC)
that switch between "backwards-compatible quirks-mode"-rendering and
"try-to-match-the-css-spec-but-still-fail"-rendering based on the Doctype
will not notice it if it is not on the first line.
--
__________________________________________________________________
Geir Bækholt · Interaction Engineer · Plone Solutions
Development · Training · Support · http://www.plonesolutions.com
__________________________________________________________________
More information about the ZPT
mailing list