1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #31080 -- Removed redundant type="text/javascript" attribute from <script> tags.

This commit is contained in:
Jon Dufresne
2019-12-11 00:49:54 -08:00
committed by Carlton Gibson
parent d8e2333528
commit e703b93a65
24 changed files with 137 additions and 141 deletions

View File

@@ -31,8 +31,8 @@ class StaticFilesFormsMediaTestCase(SimpleTestCase):
str(m),
"""<link href="https://example.com/assets/path/to/css1" type="text/css" media="all" rel="stylesheet">
<link href="/path/to/css2" type="text/css" media="all" rel="stylesheet">
<script type="text/javascript" src="/path/to/js1"></script>
<script type="text/javascript" src="http://media.other.com/path/to/js2"></script>
<script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>
<script type="text/javascript" src="https://example.com/assets/relative/path/to/js4"></script>"""
<script src="/path/to/js1"></script>
<script src="http://media.other.com/path/to/js2"></script>
<script src="https://secure.other.com/path/to/js3"></script>
<script src="https://example.com/assets/relative/path/to/js4"></script>"""
)