3 ms·
Heh, I remember when the recommended practice for <script> tags was to put the contents inside an HTML comment <!-- --> so that it was hidden from browsers that
by nostrademons 16y ago
Heh, I remember when the recommended practice for <script> tags was to put the contents inside an HTML comment <!-- --> so that it was hidden from browsers that didn't recognize the <script> tag. I believe it was even special-cased in the JavaScript parser so that it wouldn't cause a JS error. I wonder if that's still the case...
- yuhong 16y agoYea, in fact, have you seen this: <!--//--><![CDATA[//><!-- ... //--><!]]> XHTML required the <![CDATA[, old browser compatiblity required the <!--.