[BUGFIX] Doctype set to html5 should not render xmlns attribute 75/43875/3
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 6 Oct 2015 21:57:21 +0000 (23:57 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 8 Oct 2015 18:39:05 +0000 (20:39 +0200)
If the doctype is explicitly set to html5, the attribute xmlns
should still not be rendered.

Resolves: #70300
Releases: master
Change-Id: I61abc836926213c24a9fe04e3df50d3baf9d4a9c
Reviewed-on: http://review.typo3.org/43875
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Benni Mack <benni@typo3.org>
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: