Leaving out type="text/javascript" language="javascript"
Posted
by coffeeaddict
on Stack Overflow
See other posts from Stack Overflow
or by coffeeaddict
Published on 2010-04-13T02:15:18Z
Indexed on
2010/04/13
2:22 UTC
Read the original article
Hit count: 494
JavaScript
|ASP.NET
Most of the script tags I create, I always include type="text/javascript" language="javascript"
in the tag. My boss however does not. Sometimes he excludes both, sometimes just has language=javascript
even without the quotes
Now we have not had an issue in any of the major browsers with his tags. I'm talking about all versions of IE, FF, Safari, and Chrome.
Personally I feel it's laziness and just totally improper and bad coding practice to leave stuff out like this even if it works without it.
Anyone know if both should be included or just one or is it ok to leave both out in ASP.NET?
© Stack Overflow or respective owner