I built a site. At some point, I noticed that the IE display was a little broken, and Chrome did almost nothing except the body tag (empty), and FF looked good.
After I threw my keyboard around the room and hit my head with my mouse, I found a problem. I left (donβt ask how and why, maybe there was some kind of lightning speed error and insertion) HTML comment closed in an inline script block.
<script type="text/javascript"> <!-- ... </script>
I assume (not verified) that the problem would not have occurred or would have manifested itself much more noticeably if the script had been external. Anyway, I thought, is there ever a time when you have a really good reason to write an inline script ??
javascript html scripting inline
Dave archer
source share