[TYPO3] HTML 4.01 Strict?

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Tue Sep 26 17:11:53 CEST 2006


Matthew Manderson schrieb:
> 
> 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>';

This should do the trick:

config.htmlTag_setParams = none

> 
> 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?

Have a look at tslib_fe::generatePage_postProcessing(). There are a number 
of hooks you could use. I'd go for some regexp that looks for all know tags 
(br, hr, meta, ...) and removes the /.

Or you simply set $TYPO3_CONF_VARS['FE']['tidy_option'] and 
$TYPO3_CONF_VARS['FE']['tidy_path'] with proper options and let tidy do its 
job.

Masi



More information about the TYPO3-english mailing list