mirror of
https://github.com/django/django.git
synced 2024-12-30 13:05:45 +00:00
[5.0.x] Fixed #35261 -- Corrected Media JS example of object-based paths in docs.
`rel` attribute is not valid on `<link>` tags.
Backport of 368a8a3a83
from main
This commit is contained in:
parent
b5acf10638
commit
17855bf578
@ -287,7 +287,7 @@ outputting the complete HTML ``<script>`` or ``<link>`` tag content:
|
|||||||
>>> @html_safe
|
>>> @html_safe
|
||||||
... class JSPath:
|
... class JSPath:
|
||||||
... def __str__(self):
|
... def __str__(self):
|
||||||
... return '<script src="https://example.org/asset.js" rel="stylesheet">'
|
... return '<script src="https://example.org/asset.js" defer>'
|
||||||
...
|
...
|
||||||
|
|
||||||
>>> class SomeWidget(forms.TextInput):
|
>>> class SomeWidget(forms.TextInput):
|
||||||
|
Loading…
Reference in New Issue
Block a user