jwvdiermen / grunt-include-source

Include lists of files into your source files automatically.
MIT License
68 stars 31 forks source link

type="text/javascript" is redundant #23

Closed mgol closed 10 years ago

mgol commented 10 years ago

Scripts have default type "application/javascript" and even old browsers interpret script tags without the type attribute as JavaScript scripts. On the other hand, the "text/javascript" MIME type is deprecated for JavaScript but explicitly specifying type="application/javascript" is not recognized by older IEs.

In other words, the only way to be both conformant to the spec and to not specify an obsolete MIME type is to omit the type attribute completely. Works everywhere and is less verbose so it's easier to read it.

jwvdiermen commented 10 years ago

I'll remove it in the next release.

jwvdiermen commented 10 years ago

This is now fixed.