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

Stopped including type="text/css" attributes for CSS link tags.

This commit is contained in:
Claude Paroz
2022-01-21 15:46:37 +01:00
parent 9dc65263d4
commit 7c4f396509
19 changed files with 105 additions and 97 deletions

View File

@@ -2485,8 +2485,8 @@ class OtherModelFormTests(TestCase):
f = ModelFormWithMedia()
self.assertHTMLEqual(
str(f.media),
'''<link href="/some/form/css" type="text/css" media="all" rel="stylesheet">
<script src="/some/form/javascript"></script>'''
'<link href="/some/form/css" media="all" rel="stylesheet">'
'<script src="/some/form/javascript"></script>'
)
def test_choices_type(self):