Why doesn’t IE8 recognize type=”application/javascript” in a script tag?

“text/javascript” is the only type that is supported by all three browsers. However, you don’t actually need to put a type. The type attribute of a script tag will default to “text/javascript” if it is not otherwise specified. How that will affect validation, I’m not sure. But does that really matter anyway?

Leave a Comment