[TYPO3] HTML 4.01 Strict?

Matthew Manderson matthew at manderson.co.uk
Tue Sep 26 15:54:02 CEST 2006


Great Masi.

> # custom docytpe
> config.doctype = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
> # rendering doctype
> config.xhtmlDoctype = xhtml_strict

1) I also needed to add:
page.config.xmlprologue = none

2) I also needed to modify the file:
typo3/sysext/cms/tslib/class.tslib_pagegen.php

//              $GLOBALS['TSFE']->content.='<html'.($_attr ? ' '.$_attr : '').'>';
                $GLOBALS['TSFE']->content.='<html>';

3) The final issue is now just the /> tags. Many are in that
class.tslib_pagegen.php file but rather that hand edit them I'd like to use
that hook you mentioned.

Which is the rendering file I need to look in?

Thanks

Matthew


Martin Kutschker wrote:

> Matthew Manderson schrieb:
>> Hi
>> 
>> Anybody running TYPO3 in HTML 4.01 STRICT doctype?
>> 
>> It seems not as easy as it looks. Any advice welcome.
> 
> The obvious problem are the extra slashes in tags like <br/>. You could
> simply remove them with a regexp at the end of the rendering (there is a
> hook).
> 
> I think that TYPO3 only adheres to strict for XHTML so, you must do a
> trick here:
> 
> # custom docytpe
> config.doctype = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
> # rendering doctype
> config.xhtmlDoctype = xhtml_strict
> 
> Now TYPO3 will not generate any old style attributes.
> 
> Are there any other issues?
> 
> Masi




More information about the TYPO3-english mailing list