From: Christian Weiske Date: Sat, 9 Oct 2010 10:09:39 +0000 (+0200) Subject: make the page valid and keep chromium happy X-Git-Tag: v0.98.0~165 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f359fd685f164855a34c85d164e0d38da12a2434;p=semanticscuttle.git make the page valid and keep chromium happy --- diff --git a/data/templates/sidebar.block.linked.php b/data/templates/sidebar.block.linked.php index db0d087..54e9260 100644 --- a/data/templates/sidebar.block.linked.php +++ b/data/templates/sidebar.block.linked.php @@ -32,7 +32,7 @@ if ($editingMode) { ?> - +]]> \ No newline at end of file diff --git a/data/templates/top.inc.php b/data/templates/top.inc.php index 8be978f..c3cbc5d 100644 --- a/data/templates/top.inc.php +++ b/data/templates/top.inc.php @@ -1,7 +1,8 @@ + - + <?php echo filter($GLOBALS['sitename'] .(isset($pagetitle) ? ' » ' . $pagetitle : '')); ?> 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');