Permalink
Browse files

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>
  • Loading branch information...
1 parent 081198a commit d83df7141239a2ca6f43f0b96c91919641e36f3f @acdha acdha committed with Oct 20, 2010
@@ -1,5 +1,5 @@
{% load i18n %}
-<script type="text/javascript" charset="utf-8">
+<script type="text/javascript">
// <![CDATA[
var DEBUG_TOOLBAR_MEDIA_URL = "{{ DEBUG_TOOLBAR_MEDIA_URL }}";
// ]]>
@@ -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);
@@ -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');
});
@@ -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');
});

0 comments on commit d83df71

Please sign in to comment.