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:
Kévin Commaille 2024-12-10 23:57:13 +01:00 committed by GitHub
parent 1accb9e93f
commit 7867ebb250
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Remove `type` and `language` attributes of `script` element.

View file

@ -7,4 +7,4 @@
*/}}
{{ $toc := resources.Get "js/toc.js" -}}
<script defer language="javascript" type="text/javascript" src="{{ $toc.RelPermalink }}"></script>
<script defer src="{{ $toc.RelPermalink }}"></script>