[TYPO3-core] RFC #236: Bug: Rendered pages do not validate if no doctype is set.

Susanne Moog info at susannemoog.de
Sat May 1 15:50:38 CEST 2010


On 30.04.2010 15:31, Christian Buelter wrote:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker reference: http://bugs.typo3.org/view.php?id=236
> 
> Branches: trunk
> 
> Problem:
> Charset and generator meta tags are written in XHTML by default.
> 
> If no doctype is set, TYPO3 renders pages as HTML Transitional. But
> several meta-tags in the page head are rendered hardcoded with an ending
> slash (including generator, baseUrl, shortcutTag, metaCharsetTag). This
> prevents the rendered document from validating, since the ending slash
> is only allowed in XHTML.
> 
> Solution:
> Check if doctype is set to XHTML and remove the ending slashes in
> class.tslib_pagegen.php and class.t3lib_pagerenderer.php.
> 
> Notes:
> This bug has been around since 2004 and still is in the current 4.4 Trunk.

committed to trunk rev 7484 after my +1 by reading and testing.

Best regards,

Susanne


More information about the TYPO3-team-core mailing list