treewide: HTML Cleanup
authorMustafa Can Elmacı <mustafacan@elmaci.net>
Sun, 17 Nov 2024 12:52:45 +0000 (15:52 +0300)
committerPaul Donald <newtwen+github@gmail.com>
Fri, 22 Nov 2024 21:39:46 +0000 (22:39 +0100)
commitae8bbb814f16c2dc2a82e88d408bee1812ceda9c
treeb48de027e4f3d6a366ef60025b980bc83ee5ae90
parentaa955d6465b4d0f00cc713904e2de7bfb0cbd062
treewide: HTML Cleanup

* 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ı <mustafacan@elmaci.net>
54 files changed:
applications/luci-app-bmx7/root/usr/lib/lua/luci/view/admin_status/index/bmx7_nodes.htm
applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/nodes_j.htm
applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/status_j.htm
applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/topology.htm
applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/tunnels_j.htm
applications/luci-app-commands/ucode/template/commands.ut
applications/luci-app-cshark/luasrc/view/cshark.htm
applications/luci-app-dockerman/luasrc/view/dockerman/apply_widget.htm
applications/luci-app-dockerman/luasrc/view/dockerman/container.htm
applications/luci-app-dockerman/luasrc/view/dockerman/container_console.htm
applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm
applications/luci-app-dockerman/luasrc/view/dockerman/container_stats.htm
applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm
applications/luci-app-dockerman/luasrc/view/dockerman/images_load.htm
applications/luci-app-dockerman/luasrc/view/dockerman/newcontainer_resolve.htm
applications/luci-app-ltqtapi/luasrc/view/telephony_status.htm
applications/luci-app-lxc/luasrc/view/lxc.htm
applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm
applications/luci-app-ocserv/luasrc/view/ocserv_status.htm
applications/luci-app-olsr-viz/root/usr/libexec/rpcd/olsrvizinfo
applications/luci-app-olsr/htdocs/cgi-bin-status.html
applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm
applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm
applications/luci-app-privoxy/luasrc/view/privoxy/detail_logview.htm
applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm
applications/luci-app-radicale/luasrc/view/radicale/btn_startstop.htm
applications/luci-app-radicale/luasrc/view/radicale/tabmap_nsections.htm
applications/luci-app-radicale2/luasrc/view/cbi/raduigo.htm
applications/luci-app-splash/htdocs/luci/splash/index.html
applications/luci-app-splash/luasrc/view/admin_status/splash.htm
applications/luci-app-unbound/luasrc/view/unbound/css-editing.htm
docs/LuCI-0.10.md
docs/ThemesHowTo.md
libs/luci-lib-nixio/axTLS/www/index.html
modules/luci-base/root/www/index.html
modules/luci-base/ucode/template/error500.ut
modules/luci-base/ucode/template/footer.ut
modules/luci-base/ucode/template/header.ut
modules/luci-base/ucode/template/sysauth.ut
modules/luci-base/ucode/template/view.ut
modules/luci-compat/luasrc/view/cbi/delegator.htm
modules/luci-compat/luasrc/view/cbi/footer.htm
modules/luci-compat/luasrc/view/cbi/ipaddr.htm
modules/luci-compat/luasrc/view/cbi/simpleform.htm
modules/luci-compat/luasrc/view/cbi/wireless_modefreq.htm
modules/luci-mod-status/ucode/template/admin_status/index.ut
themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/footer.ut
themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut
themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/sysauth.ut
themes/luci-theme-material/ucode/template/themes/material/footer.ut
themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/footer.ut
themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut
themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/footer.ut
themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut