Skip to content

Commit

Permalink
Remove type and language attributes of script element (#2021)
Browse files Browse the repository at this point in the history
The `type` attribute is not needed when the content is JavaScript,
and the `language` attribute is deprecated.

Signed-off-by: Kévin Commaille <[email protected]>
  • Loading branch information
zecakeh authored Dec 10, 2024
1 parent 1accb9e commit 7867ebb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/internal/newsfragments/2021.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove `type` and `language` attributes of `script` element.
2 changes: 1 addition & 1 deletion layouts/partials/hooks/body-end.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 7867ebb

Please sign in to comment.