Am I the only one? or Html is not that XML compliant.
Posted by Igor Moochnick on 12/18/2008
While working on my latest project, I’ve noticed that my site (that uses jQuery) was working properly on Google Chrome, but wasn’t working at all (without any errors) on IE7 and FF.
After very long fight I’ve noticed that (are you ready for this?) it does matter how you close the <script> tag.
Compare this (WORKING !!!):
with this (NOT WORKING !!!):
Note that the closing tag HAVE to be present as a separate node. YOU CAN’T USE THE SHORT NOTATION !!!