Index: typo3/sysext/cms/tslib/class.tslib_pagegen.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_pagegen.php (revision 7654) +++ typo3/sysext/cms/tslib/class.tslib_pagegen.php (working copy) @@ -428,6 +428,9 @@ PUBLIC "-//W3C//DTD XHTML 2.0//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml2.dtd">'; break; + case 'html_5' : + $docTypeParts[] = ''; + break; case 'none' : break; default : @@ -1177,4 +1180,4 @@ var $fromTC = 0; // Means that everything is returned instead of only uid and label-field } -?> +?> \ No newline at end of file Index: typo3/template.php =================================================================== --- typo3/template.php (revision 7654) +++ typo3/template.php (working copy) @@ -195,6 +195,7 @@ var $backGroundImage = ''; // Background image of page (relative to PATH_typo3) var $inDocStyles_TBEstyle = ''; // Inline css styling set from TBE_STYLES array + public $noCompatibleTag = FALSE; //set if you want tu supress the "X-UA-Compatible" meta tag // Skinning // stylesheets from core protected $stylesheetsCore = array( @@ -686,7 +687,7 @@ header ('Content-Type:text/html;charset='.$this->charset); // Standard HTML tag - $this->pageRenderer->setHtmlTag(''); + $htmlTag = ''; switch($this->docType) { case 'html_3': @@ -705,7 +706,14 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">'; break; - // The fallthrough is intended as XHTML 1.0 transitional is the default for the BE. + case 'html_5': + $headerStart = ' + '; + $htmlTag = ''; + // disable rendering of XHTML tags + $this->getPageRenderer()->setRenderXhtml(FALSE); + break; + // The fallthrough is intended as XHTML 1.0 transitional is the default for the BE. case 'xhtml_trans': default: $headerStart = ''; } + $this->pageRenderer->setHtmlTag($htmlTag); + // This loads the tabulator-in-textarea feature. It automatically modifies // every textarea which is found. if (!$GLOBALS['BE_USER']->uc['disableTabInTextarea']) { @@ -729,7 +739,7 @@ $xmlStylesheet = ''; // Add the XML prologue for XHTML doctypes - if ($this->docType !== 'html_3') { + if ($this->docType !== 'html_3' && $this->docType !== 'html_5') { // Put the XML prologue before or after the doctype declaration according to browser if ($browserInfo['browser'] === 'msie' && $browserInfo['version'] < 7) { $headerStart = $headerStart . LF . $xmlPrologue; @@ -747,7 +757,9 @@ $this->pageRenderer->setHeadTag('' . LF. ''); $this->pageRenderer->setCharSet($this->charset); $this->pageRenderer->addMetaTag($this->generator()); - $this->pageRenderer->addMetaTag($this->xUaCompatible()); + if (!$this->noCompatibleTag) { + $this->pageRenderer->addMetaTag($this->xUaCompatible()); + } $this->pageRenderer->setTitle($title); // add docstyles @@ -812,7 +824,7 @@ header('Content-Encoding: None'); } - if ($this->docType!='xhtml_frames') { + if ($this->docType !== 'xhtml_frames') { $str .= ($this->divClass?' @@ -1168,11 +1180,10 @@ /** * Returns X-UA-Compatible meta tag * + * @param string content of the compatible tag * @return string */ - function xUaCompatible() { - // the most recent version if Internet Explorer, in which the Backend works - $str = "IE=8"; + public function xUaCompatible($str = 'IE=8') { // the most recent version if Internet Explorer, in which the Backend works return ''; }