summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-10-09 12:09:39 +0200
committerChristian Weiske <cweiske@cweiske.de>2010-10-09 12:09:39 +0200
commitf359fd685f164855a34c85d164e0d38da12a2434 (patch)
tree7837d478c39156b6de8e1368a8c1fee40387dc58 /src/SemanticScuttle
parent48cd84921f42e409653ac34a5ba5c3d1d988c4e0 (diff)
downloadsemanticscuttle-f359fd685f164855a34c85d164e0d38da12a2434.tar.gz
semanticscuttle-f359fd685f164855a34c85d164e0d38da12a2434.tar.bz2
make the page valid and keep chromium happy
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r--src/SemanticScuttle/header.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SemanticScuttle/header.php b/src/SemanticScuttle/header.php
index d1a5c29..3caeb35 100644
--- a/src/SemanticScuttle/header.php
+++ b/src/SemanticScuttle/header.php
@@ -120,7 +120,10 @@ $tplVars['userservice'] = $userservice;
if (!defined('UNIT_TEST_MODE')) {
//API files define that, so we need a way to support both of them
if (!isset($httpContentType)) {
- $httpContentType = 'text/html';
+ //$httpContentType = 'text/html';
+ //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';
}
if ($httpContentType !== false) {
header('Content-Type: ' . $httpContentType . '; charset=utf-8');