Sign In/My Account | View Cart  
advertisement

Article:
 XSLT, Browsers, and JavaScript
Subject: Scripts need CDATA too
Date: 2003-02-13 07:05:51
From: Taylor Cowan

Bob, I want to add that we need to use CDATA with larger scripts, and any non-xml text in general.
This would cause a problem:


<script language="JavaScript1.2">
function showWhyWeNeedCdata {
if ( 1 < 2 )
alert("scripts need CDATA");
}
</script>


Yours were fine, but we run across <,>, and sometimes & in scripts.


Taylor Cowan


Previous Message Previous Message   Next Message Next Message


Full Text Titles Only Newest First

Sponsored By: