Project

General

Profile

Actions

Bug #55272

closed

TYPO3 4.5 HTML5 incompatibility fix

Added by Tizian Schmidlin almost 11 years ago. Updated over 10 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2014-01-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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;
...

Actions

Also available in: Atom PDF