-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add meta http-equiv for ie compatibility to the index by default. #316
Conversation
Let's follow the lead on this project: |
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.
Thanks for getting this in so quickly! 💃
f6797db
to
0b3b55c
Compare
@T4rk1n - Could we add this item to the changelog? |
@chriddyp - It is in the changelogs: https://github.com/plotly/dash/blob/master/CHANGELOG.md#0231---2018-08-02 |
🙈 sorry about that, totally missed it. thank you! 🙇 |
has_charset = any('charset' in x for x in self._meta_tags) | ||
|
||
tags = [] | ||
if not has_ie_compat: | ||
tags.append('<meta equiv="X-UA-Compatible" content="IE=edge">') |
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.
Hmm. Should this be http-equiv="..."
?
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.
Yes, it should.
As discussed in #275, add
<meta http-equiv="X-UA-Compatible" content="IE=8">
to the index if it's not specified in themeta_tags
.Should the meta tags be closed with '
/>
or just>
? The HTML5 specification says it doesn't need it but it's needed byxhtml
. We have<!DOCTYPE html>
by default, but if someone changes it to something else it might needs it.