summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2011-04-20 17:40:53 +0000
committerLuke Plant <L.Plant.98@cantab.net>2011-04-20 17:40:53 +0000
commit26cda43012104cf700673966659f8c2f2bfb0bbe (patch)
tree6b37d7cd440f4f1cde5a4c79ace017d0859cb2e7 /docs
parent519534bf03fc50d9176a857e3f4de5cfe1d0fa66 (diff)
Switched to HTML5 doctype in all Django supplied templates.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/flatpages.txt3
-rw-r--r--docs/topics/templates.txt10
-rw-r--r--docs/topics/testing.txt2
3 files changed, 6 insertions, 9 deletions
diff --git a/docs/ref/contrib/flatpages.txt b/docs/ref/contrib/flatpages.txt
index a99f75eb2d..c01130067b 100644
--- a/docs/ref/contrib/flatpages.txt
+++ b/docs/ref/contrib/flatpages.txt
@@ -170,8 +170,7 @@ Here's a sample :file:`flatpages/default.html` template:
.. code-block:: html+django
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
- "http://www.w3.org/TR/REC-html40/loose.dtd">
+ <!DOCTYPE html>
<html>
<head>
<title>{{ flatpage.title }}</title>
diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt
index 3b641fb58e..3f56c9ea01 100644
--- a/docs/topics/templates.txt
+++ b/docs/topics/templates.txt
@@ -259,9 +259,8 @@ defines **blocks** that child templates can override.
It's easiest to understand template inheritance by starting with an example::
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <!DOCTYPE html>
+ <html lang="en">
<head>
<link rel="stylesheet" href="style.css" />
<title>{% block title %}My amazing site{% endblock %}</title>
@@ -313,9 +312,8 @@ in ``base.html`` and replace those blocks with the contents of the child
template. Depending on the value of ``blog_entries``, the output might look
like::
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <!DOCTYPE html>
+ <html lang="en">
<head>
<link rel="stylesheet" href="style.css" />
<title>My amazing blog</title>
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt
index 64e4707350..fb9f6e53b9 100644
--- a/docs/topics/testing.txt
+++ b/docs/topics/testing.txt
@@ -615,7 +615,7 @@ Web pages::
200
>>> response = c.get('/customer/details/')
>>> response.content
- '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...'
+ '<!DOCTYPE html...'
As this example suggests, you can instantiate ``Client`` from within a session
of the Python interactive interpreter.