From ae8bbb814f16c2dc2a82e88d408bee1812ceda9c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mustafa=20Can=20Elmac=C4=B1?=
Date: Sun, 17 Nov 2024 15:52:45 +0300
Subject: [PATCH] treewide: HTML Cleanup
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* HTML Cleanup: Meta tags.
* Converted charset to shorthand.
* Removed meta tags with `Content-Script-Type` attribute. (Invalid in HTML5 spec.)
* HTML Cleanup: CSS tags.
* Removed `type` attribute with CSS files from link tags. (HTML5 spec recommends omitting it.)
* Removed `type` attribute from style tags. (Deprecated in HTML5 spec.)
https://html.spec.whatwg.org/#attr-link-type
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
* HTML Cleanup: Convert from XHTML to HTML5
* Removed XML declaration.
* Removed XML namespace.
* Changed doctype to HTML5.
* HTML Cleanup: CDATA tags.
* CDATA sections should not be used within HTML they are considered as comments and not displayed.
https://developer.mozilla.org/en-US/docs/Web/API/CDATASection
* HTML Cleanup: Script tags.
* Removed `language` attribute from script tags. (No longer valid in HTML5)
* Removed `type` attribute with JavaScript MIME type from script tags. (HTML5 spec recommends omitting it.)
https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type
https://mimesniff.spec.whatwg.org/#javascript-mime-type
Signed-off-by: Mustafa Can Elmacı
---
.../view/admin_status/index/bmx7_nodes.htm | 6 +++---
.../usr/lib/lua/luci/view/bmx7/nodes_j.htm | 8 ++++----
.../usr/lib/lua/luci/view/bmx7/status_j.htm | 8 ++++----
.../usr/lib/lua/luci/view/bmx7/topology.htm | 4 ++--
.../usr/lib/lua/luci/view/bmx7/tunnels_j.htm | 8 ++++----
.../ucode/template/commands.ut | 4 ++--
.../luci-app-cshark/luasrc/view/cshark.htm | 4 ++--
.../luasrc/view/dockerman/apply_widget.htm | 6 +++---
.../luasrc/view/dockerman/container.htm | 2 +-
.../view/dockerman/container_console.htm | 2 +-
.../luasrc/view/dockerman/container_file.htm | 2 +-
.../luasrc/view/dockerman/container_stats.htm | 4 ++--
.../luasrc/view/dockerman/images_import.htm | 2 +-
.../luasrc/view/dockerman/images_load.htm | 2 +-
.../view/dockerman/newcontainer_resolve.htm | 4 ++--
.../luasrc/view/telephony_status.htm | 4 ++--
applications/luci-app-lxc/luasrc/view/lxc.htm | 4 +---
.../luasrc/view/nft-qos/rate.htm | 4 ++--
.../luasrc/view/ocserv_status.htm | 4 ++--
.../root/usr/libexec/rpcd/olsrvizinfo | 2 +-
.../luci-app-olsr/htdocs/cgi-bin-status.html | 5 ++---
.../view/openvpn/cbi-select-input-add.htm | 4 +---
.../luasrc/view/openvpn/ovpn_css.htm | 2 +-
.../luasrc/view/privoxy/detail_logview.htm | 4 ++--
.../luasrc/view/privoxy/detail_startstop.htm | 4 ++--
.../luasrc/view/radicale/btn_startstop.htm | 4 ++--
.../luasrc/view/radicale/tabmap_nsections.htm | 2 +-
.../luasrc/view/cbi/raduigo.htm | 2 +-
.../htdocs/luci/splash/index.html | 5 ++---
.../luasrc/view/admin_status/splash.htm | 4 ++--
.../luasrc/view/unbound/css-editing.htm | 2 +-
docs/LuCI-0.10.md | 2 +-
docs/ThemesHowTo.md | 2 +-
libs/luci-lib-nixio/axTLS/www/index.html | 20 +++++++------------
modules/luci-base/root/www/index.html | 7 +++----
modules/luci-base/ucode/template/error500.ut | 2 +-
modules/luci-base/ucode/template/footer.ut | 4 ++--
modules/luci-base/ucode/template/header.ut | 6 +++---
modules/luci-base/ucode/template/sysauth.ut | 4 ++--
modules/luci-base/ucode/template/view.ut | 2 +-
.../luci-compat/luasrc/view/cbi/delegator.htm | 2 +-
.../luci-compat/luasrc/view/cbi/footer.htm | 2 +-
.../luci-compat/luasrc/view/cbi/ipaddr.htm | 2 +-
.../luasrc/view/cbi/simpleform.htm | 2 +-
.../luasrc/view/cbi/wireless_modefreq.htm | 6 +++---
.../ucode/template/admin_status/index.ut | 6 +++---
.../ucode/template/themes/bootstrap/footer.ut | 2 +-
.../ucode/template/themes/bootstrap/header.ut | 4 ++--
.../template/themes/bootstrap/sysauth.ut | 2 +-
.../ucode/template/themes/material/footer.ut | 2 +-
.../template/themes/openwrt2020/footer.ut | 2 +-
.../template/themes/openwrt2020/header.ut | 9 ++++-----
.../template/themes/openwrt.org/footer.ut | 2 +-
.../template/themes/openwrt.org/header.ut | 13 ++++++------
54 files changed, 106 insertions(+), 121 deletions(-)
diff --git a/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/admin_status/index/bmx7_nodes.htm b/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/admin_status/index/bmx7_nodes.htm
index 32a3a965ce..c8ddb2d8e8 100644
--- a/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/admin_status/index/bmx7_nodes.htm
+++ b/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/admin_status/index/bmx7_nodes.htm
@@ -18,8 +18,8 @@
-
-
+
+
diff --git a/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/nodes_j.htm b/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/nodes_j.htm
index 16522b962c..bbbeb52c0e 100644
--- a/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/nodes_j.htm
+++ b/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/nodes_j.htm
@@ -22,8 +22,8 @@
-%>
<%+header%>
-
-
+
+
-
+
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/container.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/container.htm
index 3684b64473..f9b2f4344a 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/container.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/container.htm
@@ -9,7 +9,7 @@
<%:Logs%>
-
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm
index 46d4278cf7..53f2c84f66 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm
@@ -15,7 +15,7 @@
-
+
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm
index b87759d00f..8c27eadb69 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm
@@ -5,7 +5,7 @@
-
+
-
+