Bug #17534
closedMeta-Tag http-equiv="Content-Type" content="text/html [...]"
0%
Description
Add a template-TS option (fx. config.renderContent) to set another content type for <meta http-equiv="Content-Type" [...]>.
Content-Type "text/html" is hardcoded but "application/xhtml+xml" is required for doctype xhtml_11 and above.
(Sorry, I'm not used to the patch-mechanisms)
TYPO3-Version: 4.1.2
File: typo3_src-4.1.2/typo3/sysext/cms/tslib/class.tslib_pagegen.php
Line: 472-474
Change
// Setting charset meta tag:
$GLOBALS['TSFE']->content.='
<meta http-equiv="Content-Type" content="text/html; charset='.$theCharset.'" />';
To
// Setting charset meta tag:
$GLOBALS['TSFE']->content.='
<meta http-equiv="Content-Type" content="'.($GLOBALS['TSFE']->config['config']['renderContent'] ? $GLOBALS['TSFE']->config['config']['renderContent'] : 'text/html').'; charset='.$theCharset.'" />';
(issue imported from #M6157)