[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Preventing CDATA output in XHTML

Subject: Re: Preventing CDATA output in XHTML
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 03 Jul 2007 00:30:44 +0200
Re:  Preventing CDATA output in XHTML
Manfred Staudinger wrote:
Hi Brian,

Here's the output:

<script type="text/javascript">
<![CDATA[
      some_func("some_arg");
    ]]>
</script>

which FF refuses to parse without errors.

I have taken those few lines and put them somewhere in a xhtml, but it does _not_ produce any error with Fx 2.0.0.4 (I also verified the source from the browsers view).


I second that. Also, the CDATA problem is an IE problem, not a FF problem. To circumvent it, you can use:


<script...>
// <![CDATA[
....your script....
// ]]>
</script>

if I am not mistaken...

And you do not need CDATA if your script sections do not contain < or & characters (but that may be well known though).

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.