Skip to content
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

Merged
merged 1 commit into from
Aug 1, 2018

Conversation

T4rk1n
Copy link
Contributor

@T4rk1n T4rk1n commented Aug 1, 2018

As discussed in #275, add <meta http-equiv="X-UA-Compatible" content="IE=8"> to the index if it's not specified in the meta_tags.

Should the meta tags be closed with '/> or just > ? The HTML5 specification says it doesn't need it but it's needed by xhtml. We have <!DOCTYPE html> by default, but if someone changes it to something else it might needs it.

@chriddyp
Copy link
Member

chriddyp commented Aug 1, 2018

Copy link
Member

@chriddyp chriddyp left a 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! 💃

@T4rk1n T4rk1n force-pushed the ie-compat-meta-tag branch from f6797db to 0b3b55c Compare August 1, 2018 21:52
@T4rk1n T4rk1n merged commit e3a5486 into master Aug 1, 2018
@T4rk1n T4rk1n deleted the ie-compat-meta-tag branch August 1, 2018 21:59
@chriddyp
Copy link
Member

@T4rk1n - Could we add this item to the changelog?

@T4rk1n
Copy link
Contributor Author

T4rk1n commented Aug 16, 2018

@chriddyp
Copy link
Member

🙈 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">')
Copy link
Contributor

@ngnpope ngnpope Oct 2, 2018

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="..."?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants