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

Christian Buelter buelter at kennziffer.com
Fri Apr 30 15:31:27 CEST 2010


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.

Greetings,

Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 236.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100430/2c8234af/attachment.asc>


More information about the TYPO3-team-core mailing list