Browse Source

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

`rel` attribute is not valid on `<link>` tags.
Leandro de Souza 1 year ago
parent
commit
368a8a3a83
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/topics/forms/media.txt

+ 1 - 1
docs/topics/forms/media.txt

@@ -287,7 +287,7 @@ outputting the complete HTML ``<script>`` or ``<link>`` tag content:
     >>> @html_safe
     ... class JSPath:
     ...     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):