Project

General

Profile

Actions

Bug #17534

closed

Meta-Tag http-equiv="Content-Type" content="text/html [...]"

Added by Wolfgang Sassik over 16 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2007-08-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #58167: Meta-Tag http-equiv="Content-Type" content="text/html [...]"Closed2014-04-24

Actions
Is duplicate of TYPO3 Core - Bug #17561: meta http-equiv="Content-Type" should change along with config.doctypeClosed2007-08-27

Actions
Actions #1

Updated by Christian Kuhn about 15 years ago

Resolved as duplicate of #17561

Actions #2

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF