Fixed #35261 -- Corrected Media JS example of object-based paths in docs.

`rel` attribute is not valid on `<link>` tags.
This commit is contained in:
Leandro de Souza 2024-03-04 14:59:49 -03:00 committed by GitHub
parent 3fcef50472
commit 368a8a3a83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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):