-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Simplify script and meta tags #522
Conversation
See https://www.w3.org/TR/html5/scripting-1.html#attr-script-type “The default, which is used if the attribute is absent, is “text/javascript””
Lower case charset=“utf-8” is more common in the source base than charset="UTF-8” (24 vs 6 occurrences), so let’s formalize to the lower case version
No idea why tests fail with Travis CI, on my Mac |
The |
@numical do you really believe that <script> without The guy just did something wrong in his code, that's all. |
@numical LOL
=> no shit...
Edit: |
Just pointing out the history. |
Thx for that. I genuinely made this PR thinking
Maybe he will reconsider
If someone wrote this - highly improbable IMHO - it will break sooner or later (HTML minifier, changing from html-webpack-plugin to another tool...). The longer If you are afraid someone might have written |
This one too: Travis CI failed for other reasons. |
@SpaceK33z were merged into the version-3.x branch Thanks @tkrotoff @SpaceK33z |
Fixed thanks a lot 👍 |
I'm on 3.0.6 and html-webpack-plugin is still outputting |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Simplifications:
<script type="text/javascript" ...>
replaced by<script ...>
See https://www.w3.org/TR/html5/scripting-1.html#attr-script-type “The default, which is used if the attribute is absent, is "text/javascript””
FYI The old HTML 4 specification requires
type
attribute but even in HTML 4 mode (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
), IE6 works without specifying thetype
attribute (tested myself).<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
replaced by<meta charset="utf-8"/>
See https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Obsolete_things_to_avoid
See http://stackoverflow.com/questions/4696499
All tests passing locally.
Less code is always good :)