aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorChris Adams2010-10-20 12:00:49 -0400
committerRob Hudson2010-10-20 10:00:33 -0700
commitd83df7141239a2ca6f43f0b96c91919641e36f3f (patch)
tree10fca426282f28dc97ba1043d25c14c7e8b27100 /example
parent081198a8cb54766935f148476430a815a792a479 (diff)
downloaddjango-debug-toolbar-d83df7141239a2ca6f43f0b96c91919641e36f3f.tar.bz2
HTML Validation fixes
It turns out that <script … charset="utf-8">inline script</script> is not valid (charset is valid with script src). This avoids debug_toolbar causing HTML validation errors simply by being active. Signed-off-by: Rob Hudson <rob@cogit8.org>
Diffstat (limited to 'example')
-rw-r--r--example/templates/jquery/index.html2
-rw-r--r--example/templates/mootools/index.html2
-rw-r--r--example/templates/prototype/index.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/example/templates/jquery/index.html b/example/templates/jquery/index.html
index 419f348..61b3cbe 100644
--- a/example/templates/jquery/index.html
+++ b/example/templates/jquery/index.html
@@ -7,7 +7,7 @@
#v {font-weight:bold;}
</style>
<script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}/js/jquery.js"></script>
- <script type="text/javascript" charset="utf-8">
+ <script type="text/javascript">
$(document).ready(function() {
$('p.hide').show();
$('#v').append($.fn.jquery);
diff --git a/example/templates/mootools/index.html b/example/templates/mootools/index.html
index 1dac10c..fa12abe 100644
--- a/example/templates/mootools/index.html
+++ b/example/templates/mootools/index.html
@@ -6,7 +6,7 @@
.hide {display:none;}
</style>
<script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}/js/mootools.js"></script>
- <script type="text/javascript" charset="utf-8">
+ <script type="text/javascript">
window.addEvent('domready', function() {
$$('p.hide').setStyle('display', 'block');
});
diff --git a/example/templates/prototype/index.html b/example/templates/prototype/index.html
index c8fefc3..bcc3141 100644
--- a/example/templates/prototype/index.html
+++ b/example/templates/prototype/index.html
@@ -6,7 +6,7 @@
.hide {display:none;}
</style>
<script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}/js/prototype.js"></script>
- <script type="text/javascript" charset="utf-8">
+ <script type="text/javascript">
document.observe('dom:loaded', function() {
$('showme').removeClassName('hide');
});