mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
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>
This commit is contained in:
committed by
Paul Donald
parent
aa955d6465
commit
ae8bbb814f
@@ -192,5 +192,5 @@ Each theme must include this file in the `<head>` area of the document for forms
|
||||
It should be included like this:
|
||||
|
||||
```html
|
||||
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
|
||||
<script src="<%=resource%>/xhr.js"></script>
|
||||
```
|
||||
|
||||
@@ -53,7 +53,7 @@ Put any stylesheets, Javascripts, images, ... into `htdocs/luci-static/mytheme`.
|
||||
Refer to this directory in your header and footer templates as: `<%=media%>`.
|
||||
That means for a stylesheet `htdocs/luci-static/mytheme/cascade.css` you would write:
|
||||
```html
|
||||
<link rel="stylesheet" type="text/css" href="<%=media%>/cascade.css" />
|
||||
<link rel="stylesheet" href="<%=media%>/cascade.css" />
|
||||
```
|
||||
|
||||
## Making the theme selectable
|
||||
|
||||
Reference in New Issue
Block a user