In the beginning of a block of HTML, I found this:
<body><script type="text/javascript" language="javascript1.2">//<![CDATA[
<!--
...a bunch of if/thens that drive a browser specific line of text...
//-->
//]]></script>
I'm confused because I would expect the HTML and javascript comment tags <!--
-->
and //
to prevent the code from running, in essence parsing to
<body><script type="text/javascript" language="javascript1.2"></script>
However, I'm getting the browser-specific text displaying and there doesn't seem to be anyplace else that it's being generated. Does the <![CDATA[
somehow override the javascript comment, allowing the script to run, while the HTML comments inside the CDATA
block are preventing the javascript from displaying in the browser? Can someone help me understand how this all gets parsed and displayed/used?