diff options
| author | Leandro de Souza <85115541+leandrodesouzadev@users.noreply.github.com> | 2024-03-04 14:59:49 -0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-03-04 19:00:28 +0100 |
| commit | 17855bf578da756b1804542133dd1e514c15a1f3 (patch) | |
| tree | 5fcb0cff161df588251862a9bd533fd0f39a0d8a | |
| parent | b5acf10638cb93a0335638caf29c99a26c4c95e1 (diff) | |
[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 368a8a3a83885a13776a530920f0317a40e7989d from main
| -rw-r--r-- | docs/topics/forms/media.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/forms/media.txt b/docs/topics/forms/media.txt index 5fdd37437e..5978af20a0 100644 --- a/docs/topics/forms/media.txt +++ b/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): |
