[BUGFIX] Doctype set to html5 should not render xmlns attribute
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Page / PageGenerator.php
index 21afad4..5f0bc02 100644 (file)
@@ -275,6 +275,8 @@ class PageGenerator {
                        case '':
                                if ($tsfe->xhtmlVersion) {
                                        $docTypeParts[] = '<?xml version="1.0" encoding="' . $theCharset . '"?>';
+                               } else {
+                                       $xmlDocument = FALSE;
                                }
                                break;
                        default: