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
Drop attribute "type" for style tags #4804
Conversation
Vanilla uses html5 and in html5 the default type is "text/css". Based on [that information](http://www.w3schools.com/tags/att_style_type.asp), this type is the only supported type anyway. So even if browsers wouldn't be compatible with html5, they would treat a simple `<style>` tag correctly.
@@ -192,7 +192,7 @@ | |||
</style> | |||
<!--[if (gte mso 9)|(IE)]> | |||
[[literal]] | |||
<style type="text/css"> | |||
<style> |
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.
Some email clients are not yet HTML5 compliant, so I don't feel comfortable removing this yet.
@@ -6,7 +6,7 @@ | |||
<!--<![endif]--><meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||
<!--[if (gte mso 9)|(IE)]> | |||
{literal} | |||
<style type="text/css"> | |||
<style> |
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.
Some email clients are not yet HTML5 compliant, so I don't feel comfortable removing this yet.
Mail templates now have the type attribute again |
@@ -6,7 +6,7 @@ | |||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |||
<!--<![endif]--> | |||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||
<style> | |||
<style type="text/css"> |
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 one isn't necessary. This file gets compiled into a Smarty template (email/email-basic.tpl
) where this block of css gets inlined and the block disappears. The email/email-basic.tpl
file is the actual email template that gets used.
Thank you :) |
Vanilla uses html5 and in html5 the default type is "text/css". Based on that information, this type is the only supported type anyway. So even if browsers wouldn't be compatible with html5, they would treat a simple
<style>
tag correctly.