Remove deprecated and superfluous <script> attributes
authorDaniel Gustafsson <daniel@yesql.se>
Tue, 27 Jun 2017 20:19:17 +0000 (22:19 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 27 Jun 2017 20:19:17 +0000 (22:19 +0200)
The language attribute has been deprecated for quite some time with
the type attribute setting the type of embedded content.  The type
attribute has further been defined to text/javascript as the default
value in the spec, so no attribute should be used for Javascript.
Per the standard: https://www.w3.org/TR/html5/scripting-1.html

pgcommitfest/commitfest/templates/base.html
pgcommitfest/commitfest/templates/commitfest.html
pgcommitfest/commitfest/templates/patch.html

index 6c8756c5a36819e6da9b9a43236d0904475544cc..fb867833d24ba661773592902858410bd94525f3 100644 (file)
@@ -43,7 +43,7 @@
 <script src="/static/commitfest/js/jquery.js"></script>
 <script src="/static/commitfest/js/jquery-ui.js"></script>
 <script src="/static/commitfest/js/bootstrap.js"></script>
-<script type="text/javascript" src="/static/selectable/js/jquery.dj.selectable.js"></script>
+<script src="/static/selectable/js/jquery.dj.selectable.js"></script>
 <script src="/static/commitfest/js/commitfest.js"></script>
 {%block morescript%}{%endblock%}
 </html>
index 350bf4ab1ac83e353488dbadbfbca01a18f79ec1..c648f8c6b1fe5cd60d9576fcb66611b72fcc22fe 100644 (file)
 {%endblock%}
 
 {%block morescript%}
-<script language="javascript">
+<script>
 {%if user.is_staff%}
    function send_selected() {
       var authors = [];
index a6add97b5760ed722fdbef83d74c0d7127d4a91b..a54d08aa9352a1c76d392319e95bb926e5e7b0cf 100644 (file)
 {%endblock%}
 
 {%block morescript%}
-<script language="javascript">
+<script>
 $(document).ready(function() {
    $('button.close-nofloat').each(function(i,o) {
       $(o).tooltip();