diff options
author | Tom Willemse | 2024-04-19 22:03:41 -0700 |
---|---|---|
committer | Tom Willemse | 2024-04-19 22:03:41 -0700 |
commit | af40c6207ab74d511d80bcd5767fc60a256f0b98 (patch) | |
tree | 3eeade9ce4934555e2e74dd41baf745de4d93d46 /src/SemanticScuttle | |
parent | 971e5a78f97fa3f94633244196f455112c32a40c (diff) | |
download | scuttle-af40c6207ab74d511d80bcd5767fc60a256f0b98.tar.gz scuttle-af40c6207ab74d511d80bcd5767fc60a256f0b98.zip |
fix(debug): Don't serve application/xhtml+xml in debug modedebug-fixes
There are quite a few big differences between running HTML and XHTML that are
more than just validation errors. Running a different parser in debug mode seems
unhelpful, and the goal probably won't be to generate XHTML always anyway
anymore.
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r-- | src/SemanticScuttle/header.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/SemanticScuttle/header.php b/src/SemanticScuttle/header.php index 562ae43..bbe35bc 100644 --- a/src/SemanticScuttle/header.php +++ b/src/SemanticScuttle/header.php @@ -158,15 +158,7 @@ $tplVars['userservice'] = $userservice; if (!defined('UNIT_TEST_MODE') || defined('HTTP_UNIT_TEST_MODE')) { //API files define that, so we need a way to support both of them if (!isset($httpContentType)) { - if (DEBUG_MODE) { - //using that mime type makes all javascript nice in Chromium - // it also serves as test base if the pages really validate - $httpContentType = 'application/xhtml+xml'; - } else { - //until we are sure that all pages validate, we - // keep the non-strict mode on for normal installations - $httpContentType = 'text/html'; - } + $httpContentType = 'text/html'; } if ($httpContentType !== false) { header('Content-Type: ' . $httpContentType . '; charset=utf-8'); |