Why are javascripts sometimes surrounded by these tags?

javascript

Solution

`<![CDATA[//>` is to prevent XML parsers from choking on the script.

`<!-- ... -->` is not required unless you're using Netscape 1.0.

See: Does it still make sense to use HTML comments on blocks of JavaScript?

Problem

Why are some JavaScripts encapsulated within these tags: ``` <!--//--><![CDATA[//><!-- some js here //--><!]]> ```

Original source

Related problems