diff options
author | Mustafa Can Elmacı <mustafacan@elmaci.net> | 2024-11-17 15:52:45 +0300 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-11-22 22:39:46 +0100 |
commit | ae8bbb814f16c2dc2a82e88d408bee1812ceda9c (patch) | |
tree | b48de027e4f3d6a366ef60025b980bc83ee5ae90 /applications/luci-app-openvpn | |
parent | aa955d6465b4d0f00cc713904e2de7bfb0cbd062 (diff) |
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>
Diffstat (limited to 'applications/luci-app-openvpn')
-rw-r--r-- | applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm | 4 | ||||
-rw-r--r-- | applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm b/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm index 60f9e8e288..1753d2f697 100644 --- a/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm +++ b/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm @@ -1,6 +1,5 @@ -<script type="text/javascript"> -//<![CDATA[ +<script> function vpn_add() { var vpn_name = div_add.querySelector("#instance_name1").value.replace(/[^\x00-\x7F]|[\s\.!@#$%^&*()\-+=\[\]{};':"\\|,<>\/?]/g,''); @@ -68,7 +67,6 @@ setTimeout(function(){ output.innerHTML=""}, timeout); } } -//]]> </script> <%+openvpn/ovpn_css%> diff --git a/applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm b/applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm index 55c0a543fc..114fb87794 100644 --- a/applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm +++ b/applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm @@ -1,4 +1,4 @@ -<style type="text/css"> +<style> h4 { white-space: nowrap; |