Project

General

Profile

Feature #24059 » feature_16395_v1.diff

Administrator Admin, 2010-11-15 15:07

View differences:

typo3/sysext/cms/tslib/class.tslib_pagegen.php (working copy)
case 'xhtml_11':
$GLOBALS['TSFE']->xhtmlVersion = 110;
break;
case 'xhtml+rdfa':
$GLOBALS['TSFE']->xhtmlVersion = 110;
break;
case 'xhtml_2':
$GLOBALS['TSFE']->xhtmlVersion = 200;
break;
......
PUBLIC "-//W3C//DTD XHTML 2.0//EN"
"http://www.w3.org/TR/xhtml2/DTD/xhtml2.dtd">';
break;
case 'xhtml+rdfa' :
$docTypeParts[] = '<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">';
break;
case 'html_5' :
$docTypeParts[] = '<!DOCTYPE html>';
break;
......
// Setting <html> tag attributes:
$htmlTagAttributes['xmlns'] = 'http://www.w3.org/1999/xhtml';
foreach ($GLOBALS['TSFE']->config['config']['namespaces.'] as $prefix => $uri) {
$htmlTagAttributes['xmlns:' . htmlspecialchars($prefix)] = $uri; // $uri gets htmlspecialchared later
}
$htmlTagAttributes['xml:lang'] = $htmlLang;
if ($GLOBALS['TSFE']->xhtmlVersion < 110) {
$htmlTagAttributes['lang'] = $htmlLang;
......
var $fromTC = 0; // Means that everything is returned instead of only uid and label-field
}
?>
?>
(1-1/2)