Heck, no one else needs this, and if you do, you still have problems to take care of. When you really want to support browsers that need it, you need to keep track of a lot more things. Not to mention the lack of css!
However, the big problem is that people do it wrong. Actually your example is incorrect because the line
-->
must read
secondly, you enter the attribute "text / JavaScript", which is also wrong. It was "text / javascript" (all lowercase letters), but it is deprecated (see IANA List ), and now it should be "application / javascript" (see another IANA list . However, Douglas Crockford, JS Guru, said you just need to leave it.
Another problem that no one mentioned was the following: HTML doesn't allow "-" in comments, which means you can't use "x--" to reduce x by one.
Tim Büthe Mar 24 '09 at 14:48 2009-03-24 14:48
source share