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

:javascript #717

Closed
HighFructoseSyrup opened this Issue Jul 14, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@HighFructoseSyrup

HighFructoseSyrup commented Jul 14, 2014

Shouldn't the default for :javascript be script(type="application/javascript") and not script(type="text/javascript")?
http://stackoverflow.com/questions/189850/what-is-the-javascript-mime-type-what-belongs-in-the-type-attribute-of-a-script

@s-ludwig

This comment has been minimized.

Show comment
Hide comment
@s-ludwig

s-ludwig Jul 14, 2014

Member

I think it was originally made the same as Jade to stay compatible and at least some years ago it was the more widely supported MIME type. W.r.t. supporting older Internet Explorer versions, this is the most practical choice, but it probably makes sense to start thinking about switching to "application/javascript" in a while, especially since Windows XP isn't supported anymore, which is the only system that is stuck with IE 8.

Member

s-ludwig commented Jul 14, 2014

I think it was originally made the same as Jade to stay compatible and at least some years ago it was the more widely supported MIME type. W.r.t. supporting older Internet Explorer versions, this is the most practical choice, but it probably makes sense to start thinking about switching to "application/javascript" in a while, especially since Windows XP isn't supported anymore, which is the only system that is stuck with IE 8.

@s-ludwig s-ludwig closed this in ea95db0 Jan 10, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment