Remove type
and language
attributes of script
element (#2021)
The `type` attribute is not needed when the content is JavaScript, and the `language` attribute is deprecated. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
1accb9e93f
commit
7867ebb250
2 changed files with 2 additions and 1 deletions
1
changelogs/internal/newsfragments/2021.clarification
Normal file
1
changelogs/internal/newsfragments/2021.clarification
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Remove `type` and `language` attributes of `script` element.
|
|
@ -7,4 +7,4 @@
|
||||||
|
|
||||||
*/}}
|
*/}}
|
||||||
{{ $toc := resources.Get "js/toc.js" -}}
|
{{ $toc := resources.Get "js/toc.js" -}}
|
||||||
<script defer language="javascript" type="text/javascript" src="{{ $toc.RelPermalink }}"></script>
|
<script defer src="{{ $toc.RelPermalink }}"></script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue