summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2011-02-15 00:42:39 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2011-02-15 00:42:39 +0100
commit0efc1162f77bcea770f72dbe8db1caafa8090e66 (patch)
treef3cf16b2eaa4e0a188e067c21073ffaa4098bfe3
parent15c15ed44c7904169889538143bb1f0b3533c1bc (diff)
downloadweb-0efc1162f77bcea770f72dbe8db1caafa8090e66.tar.gz
web-0efc1162f77bcea770f72dbe8db1caafa8090e66.tar.bz2
web-0efc1162f77bcea770f72dbe8db1caafa8090e66.zip
W3C fixes
-rw-r--r--controller.py1
-rw-r--r--templates/root.mako4
2 files changed, 3 insertions, 2 deletions
diff --git a/controller.py b/controller.py
index 85a9f13..894cd42 100644
--- a/controller.py
+++ b/controller.py
@@ -9,6 +9,7 @@ class Page:
All the general and simple pages.
"""
def GET(self, name = '/'):
+ web.header("Content-Type", "application/xhtml+xml;;charset=utf-8", unique = True)
if not name or name == '/': name = 'index'
return render(name)
diff --git a/templates/root.mako b/templates/root.mako
index 39ee098..46fd88f 100644
--- a/templates/root.mako
+++ b/templates/root.mako
@@ -1,8 +1,8 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
- <link rel="shortcut icon" href=${"/favicon.ico" | url} type="image/icon">
+ <link rel="shortcut icon" href=${"/favicon.ico" | url} type="image/icon" />
<title>${self.title()}</title>
${self.style()}
</head>