]> git.llucax.com Git - software/blitiri.git/commitdiff
Make default template Use XHTML 1.0 Strict
authorLeandro Lucarella <luca@llucax.com.ar>
Fri, 8 Aug 2008 17:47:46 +0000 (14:47 -0300)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Fri, 8 Aug 2008 22:53:19 +0000 (19:53 -0300)
The default template was not valid HTML 4.01 Transitional.

blitiri.cgi

index 3c904b76cdd5e530e4a9ff7d2a253f8e5772ea3e..f78ee0bbe8c3e7feb765eb2ab2fb29a7a2e5a64e 100755 (executable)
@@ -66,15 +66,16 @@ templates_path = os.path.realpath(templates_path)
 
 # Default template
 
 
 # Default template
 
-default_main_header = """
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+default_main_header = """\
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
 
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <link rel="alternate" title="%(title)s" href="%(fullurl)s/atom"
        type="application/atom+xml" />
 <head>
 <link rel="alternate" title="%(title)s" href="%(fullurl)s/atom"
        type="application/atom+xml" />
-<link href="%(css_url)s" rel="stylesheet"
-       type="text/css" />
+<link href="%(css_url)s" rel="stylesheet" type="text/css" />
 <title>%(title)s</title>
 </head>
 
 <title>%(title)s</title>
 </head>