-
-
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
Fix w3c validation warning type style #1551
Fix w3c validation warning type style #1551
Conversation
Generated by 🚫 dangerJS |
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.
This is fine overall but can you explain why it is recommended to leave it out please? I’m not quite aware of the intricacies of having or not having it, but previously I was under the impression that it’s a best practice to specify the type 😅
CHANGELOG.md
Outdated
@@ -2,414 +2,416 @@ | |||
|
|||
All notable changes to this project will be documented in this file. If a contribution does not have a mention next to it, [@geelen](https://github.com/geelen) or [@mxstbr](https://github.com/mxstbr) did it. | |||
|
|||
*The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).* |
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.
Can you remove your formatting from this file please? It’s be great to preserve its previous history and format
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.
sorry, didn't realise , will revert later on
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.
fixed
It used to be before html5. Now it’s just a legacy thing.
…On Sat, Feb 24, 2018 at 10:57 AM Phil Plückthun ***@***.***> wrote:
***@***.**** commented on this pull request.
This is fine overall but can you explain why it is recommended to leave it
out please? I’m not quite aware of the intricacies of having or not having
it, but previously I was under the impression that it’s a best practice to
specify the type 😅
------------------------------
In CHANGELOG.md
<#1551 (comment)>
:
> @@ -2,414 +2,416 @@
All notable changes to this project will be documented in this file. If a contribution does not have a mention next to it, ***@***.***(https://github.com/geelen) or ***@***.***(https://github.com/mxstbr) did it.
-*The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).*
Can you remove your formatting from this file please? It’s be great to
preserve its previous history and format
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1551 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAiy1rEAPQ8cPwNH--piN-AyRXbrD-Wvks5tYDFYgaJpZM4SR1wE>
.
|
@kitten right, its not hurting to include the Do we have to consider pre html5 environments? |
I’m a little concerned about IE9, but if this works for it that’d be awesome 😎 |
I tested the sandbox in IE8, which didn't seem to have any Problems 😃 |
Btw. I just checked https://emotion.sh/ out of curiosity. It doesn't seem to set |
Thank you so much for helping us improve styled-components! Based on our Community Guidelines every person that has a PR of any kind merged is offered an invitation to the styled-components organization—that is you right now! Should you accept, you'll get write access to the main repository. (and a fancy |
Summary
Removes
type="text/css"
from the<style />
tag, as it causes the warningsin w3c validator, see https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.styled-components.com%2F for an example.
Motivated by https://spectrum.chat/?thread=085d48f2-47e2-43ac-8459-500722a0ba3f
Tests looked fine, snapshots changed as expected. I couldn't see any problems with SSR, jest-styled-components or babel-plugin-styled-components.
TBD
Does styled-components support html 4 environments? If so, this PR should be adjusted to add the
type
attribute only if in html5-"mode"