git: 67d1f768e9 - main - cgi: set the type of script
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Sep 2026 12:44:01 UTC
The branch main has been updated by wosch:
URL: https://cgit.FreeBSD.org/doc/commit/?id=67d1f768e9a28ef5f0025d5aee3d2519db916e88
commit 67d1f768e9a28ef5f0025d5aee3d2519db916e88
Author: Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2026-09-17 12:43:56 +0000
Commit: Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2026-09-17 12:43:56 +0000
cgi: set the type of script
---
website/content/en/cgi/man.cgi | 2 +-
website/content/en/cgi/ports.cgi | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi
index eed20e14d1..cb20d2441a 100755
--- a/website/content/en/cgi/man.cgi
+++ b/website/content/en/cgi/man.cgi
@@ -2113,7 +2113,7 @@ qq{Please try a <a href="$BASE?apropos=1&manpath=$manpath&query=$html_na
sub input_autofocus_at_end {
return <<EOF;
-<script>
+<script type="text/javascript">
const input = document.querySelector('#query');
input.focus();
input.setSelectionRange(input.value.length, input.value.length);
diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index 170963ec2d..7fd27b6d5c 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -605,7 +605,7 @@ sub search_ports {
sub input_autofocus_at_end {
return <<EOF;
-<script>
+<script type="text/javascript">
const input = document.querySelector('#query');
input.focus();
input.setSelectionRange(input.value.length, input.value.length);