Fixed bug #10737: Add xmlns attribute to html tag in backend
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 7 Apr 2009 14:45:42 +0000 (14:45 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 7 Apr 2009 14:45:42 +0000 (14:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5298 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/template.php

index fe6e918..198ea0f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-07  Christian Kuhn  <lolli@schwarzbu.ch>
+
+       * Fixed bug #10737: Add xmlns attribute to html tag in backend
+
 2009-04-06  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Follow-up to issue #10834: htmlArea RTE: IE8 now uses standard name for DOM class attribute
index 8c50ab0..0fe9ea1 100644 (file)
@@ -645,9 +645,14 @@ class template {
                        // Send HTTP header for selected charset. Added by Robert Lemke 23.10.2003
                header ('Content-Type:text/html;charset='.$this->charset);
 
+                       // Standard HTML tag
+               $htmlTag = '<html xmlns="http://www.w3.org/1999/xhtml">';
+
                switch($this->docType)  {
                        case 'html_3':
-                               $headerStart = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">';
+                               $headerStart = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+';
+                               $htmlTag = '<html>';
                                break;
                        case 'xhtml_strict':
                                $headerStart = '<!DOCTYPE html
@@ -682,8 +687,7 @@ class template {
                }
 
                        // Construct page header.
-               $str = $headerStart.'
-<html>
+               $str = $headerStart . $htmlTag . '
 <head>
        <!-- TYPO3 Script ID: '.htmlspecialchars($this->scriptID).' -->
        '.$charSet.'