JavaScript Seems Mauled
Symptom: You have some simple JavaScript in CityDesk, for example:
<script type="text/javascript">
document.write('hello');
</script>
After editing this page in Normal View, it is changed to:
<script type="text/javascript">
//<![CDATA[
document.write('hello');
//]]>
</script>
This is intentional and harmless.
Explanation: Freaky as this may look, this is actually required to convert the JavaScript into standard xhtml. The two lines which were inserted start with // and are actually JavaScript comments, so they are ignored by JavaScript. The <![CDATA[ and ]]> tags are used to indicate to XML parsers that the contents are not actually XML and should not be parsed as XML, which is required to make your site valid XML. (All XHTML documents must be valid XML, and CityDesk always tries to generate valid XHTML).
CityDesk Home
Fog Creek Home
Email Us