Project

General

Profile

Bug #18642 ยป xhtml-header-bugfix.diff

Administrator Admin, 2008-04-19 16:02

View differences:

typo3/template.php (Arbeitskopie)
switch($this->docType) {
case 'xhtml_strict':
$headerStart= '<!DOCTYPE html
$headerStart= '<?xml version="1.0" encoding="'.$this->charset.'"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?xml version="1.0" encoding="'.$this->charset.'"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
';
break;
case 'xhtml_trans':
$headerStart= '<!DOCTYPE html
$headerStart= '<?xml version="1.0" encoding="'.$this->charset.'"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" encoding="'.$this->charset.'"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
';
break;
case 'xhtml_frames':
$headerStart= '<!DOCTYPE html
$headerStart= '<?xml version="1.0" encoding="'.$this->charset.'"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<?xml version="1.0" encoding="'.$this->charset.'"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
';
break;
default:
$headerStart='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">';
$headerStart='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>';
break;
}
......
}
// Construct page header.
$str = $headerStart.'
<html>
<head>
$str = $headerStart.'<head>
<!-- TYPO3 Script ID: '.htmlspecialchars($this->scriptID).' -->
'.$charSet.'
'.$generator.'
    (1-1/1)