Issue Bug Rejected

#55272TYPO3 4.5 HTML5 incompatibility fix

Tizian Schmidlin 01/23/14, 11:32 updated 05/22/14, 14:59

Description

As many of you might know, TYPO3 4.5 does not support HTML5 properly.

For example, if you set config.doctype = html5, the base, meta and link tags that are generated by TYPO3 do not close properly (HTML 4 style).

This happens because of typo3/sysext/cms/tslib/class.tslib_pagegen.php at around line 220 to 248, where the html5 tag is not matched in the switch statement and thus “renderHtml” ist deactivated in t3lib_pageRenderer.

This could be solved as follows:
@typo3/sysext/cms/tslib/class.tslib_pagegen.php@ at around line 241:

...
case 'xhtml_2':
    $GLOBALS['TSFE']->xhtmlVersion = 200;
break;
case 'html5':
break;
...

Reviews 1