[BUGFIX] Respect doctype when generating meta tags
The GenericMetaTagManager as well as the abstract class (used by extensions) does now properly respect the current doctype and therefore omits the ending slash at the end for HTML5. Resolves: #102058 Releases: main, 12.4 Change-Id: I4ce6bcb61a44aff6eda738f52fe2f2548818ee95 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84375 Tested-by:core-ci <typo3@b13.com> Reviewed-by:
Andreas Kienast <a.fernandez@scripting-base.de> Tested-by:
Andreas Kienast <a.fernandez@scripting-base.de> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Nikita Hovratov <nikita.h@live.de>
Showing
- typo3/sysext/core/Classes/MetaTag/AbstractMetaTagManager.php 6 additions, 2 deletionstypo3/sysext/core/Classes/MetaTag/AbstractMetaTagManager.php
- typo3/sysext/core/Classes/MetaTag/GenericMetaTagManager.php 7 additions, 3 deletionstypo3/sysext/core/Classes/MetaTag/GenericMetaTagManager.php
- typo3/sysext/core/Tests/Functional/MetaDataHandling/PluginsTest.php 2 additions, 2 deletions...xt/core/Tests/Functional/MetaDataHandling/PluginsTest.php
- typo3/sysext/core/Tests/Functional/Page/PageRendererTest.php 14 additions, 14 deletionstypo3/sysext/core/Tests/Functional/Page/PageRendererTest.php
- typo3/sysext/core/Tests/Unit/MetaTag/GenericMetaTagManagerTest.php 32 additions, 10 deletions...ext/core/Tests/Unit/MetaTag/GenericMetaTagManagerTest.php
- typo3/sysext/core/Tests/Unit/Page/PageRendererTest.php 1 addition, 0 deletionstypo3/sysext/core/Tests/Unit/Page/PageRendererTest.php
- typo3/sysext/seo/Tests/Functional/MetaTag/MetaTagTest.php 1 addition, 1 deletiontypo3/sysext/seo/Tests/Functional/MetaTag/MetaTagTest.php
- typo3/sysext/seo/Tests/Unit/MetaTag/OpenGraphMetaTagManagerTest.php 21 additions, 10 deletions...xt/seo/Tests/Unit/MetaTag/OpenGraphMetaTagManagerTest.php
- typo3/sysext/seo/Tests/Unit/MetaTag/TwitterCardMetaTagManagerTest.php 18 additions, 7 deletions.../seo/Tests/Unit/MetaTag/TwitterCardMetaTagManagerTest.php
Please register or sign in to comment