PDA

View Full Version : CDATA


baby
12.03.2002, 09:05
How is it with included javascript/jscript/vbscript files? Do you ned too put in //<[[CDATA and //]]> around the code...?

paul
12.03.2002, 10:58
Included scripts and css files are parsed by javascript and css parsers as they are served with content-types text/javascript or application/javascript and text/css. They are not parsed by the XML or HTML parsers and so do not behave as such. The <![CDATA[ ... ]]> delimeters are there for the benefit of the XML parser.