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.


Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
Received on Saturday, 21 August 2004 22:19:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:44 UTC