#106449`getJavaScriptFileType` returns non-empty @ DocType HTML5
Description
var_dump($GLOBALS[‘TSFE’]->config[‘config’][‘doctype’]) => string(0) “”
PATCH via https://git.typo3.org/typo3/typo3/-/commit/4a61b1dca6611a40ad5acc95f86cc30b89b7bce7
— OR —less pref…--- NOT REAL PATCH
+++ typo3/cms-core/Classes/Resource/ResourceCompressor.php 2025-03-27 21:36:13.443472535 +0100
@@ -689,7 +689,7 @@
{
if (!isset($GLOBALS['TSFE'])
|| !($GLOBALS['TSFE'] instanceof TypoScriptFrontendController)
+ || empty($GLOBALS['TSFE']->config['config']['doctype'])
+ || ($GLOBALS['TSFE']->config['config']['doctype'] === 'html5')
- || ($GLOBALS['TSFE']->config['config']['doctype'] ?? 'html5') === 'html5'
) {
// no TSFE, or doctype set to html5
return '';