W3C home > Mailing lists > Public > www-validator@w3.org > August 2004

Re: Java script and validator... not the common endtag/backslash error

From: Jari Porola <jariporola@yahoo.com>
Date: Sat, 21 Aug 2004 15:19:21 -0700 (PDT)
Message-ID: <20040821221921.84656.qmail@web21522.mail.yahoo.com>
To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Cc: www-validator@w3.org

Thanks for the fast reply!

> But presumably you are using XHTML, where <script>
> elements have #PCDATA

Yes I'm using XHTML and #PCDATA. I didn't even know
the differences between #PCDATA and CDATA and which
one is used by <script> (I should read W3C
recommendations more carefully).

> The theoretical option is a CDATA section. The
> practical way (if you care
> about IE, for example, which is XHTML ignorant and
> doesn't grok CDATA
> sections either) is to use workarounds that avoid
> the constructs that
> trigger something in #PCDATA parsing. 

Both ways seemed to work, but since I have lots of
those triggering characters I think the CDATA is
easier way.

Thanks


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
Received on Saturday, 21 August 2004 22:19:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:08 UTC