4 ms·
> or using HTML comment marks with Javascript in SCRIPT tags. This still has a valid, if rare use. In browsers that don't understand javascript (such as lynx),
by LeoPanthera 12y ago
> or using HTML comment marks with Javascript in SCRIPT tags.
This still has a valid, if rare use. In browsers that don't understand javascript (such as lynx), it prevents the code from appearing in the page.
- ygra 12y agoAs far as I know, in all browsers that know the script element, it's a non-issue. And even though Lynx won't evaluate JS, it should certainly understand the meaning of the script element. The comments were necessary in the very beginning when the script element was new and thus might have been treated like any other part of invalid HTML – doing a best effort in rendering.
- TazeTSchnitzel 12y agoIt's not like Lynx development stopped the year JS came out!