-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: HTML cleanup #7381
base: master
Are you sure you want to change the base?
chore: HTML cleanup #7381
Conversation
* 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ı <[email protected]>
* 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 Signed-off-by: Mustafa Can Elmacı <[email protected]>
* Removed XML declaration. * Removed XML namespace. * Changed doctype to HTML5. Signed-off-by: Mustafa Can Elmacı <[email protected]>
* 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 Signed-off-by: Mustafa Can Elmacı <[email protected]>
* Converted charset to shorthand. * Removed meta tags with `Content-Script-Type` attribute. (Invalid in HTML5 spec.) Signed-off-by: Mustafa Can Elmacı <[email protected]>
yes , that is a good chance to do it |
Changes are ok, but we have CI that checks that commit messages are starting from the application/folder where the change made. That's why you see an error: Commit subject line MUST start with ': ' (HTML Cleanup: Script tags.) I hope that @systemcrash can anyway merge the changes. |
@@ -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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JFYI: we also have a copy of the docs on Wiki https://github.com/openwrt/luci/wiki
So if it would be nice to update there too
I did bunch of HTML code cleanup on the repo.
Check commit messages for details.
Signed-off-by: <[email protected]>
row (viagit commit --signoff
)