W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2002

Re: HTML-KIT 292 TIDY problem with JavaScript code

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 07 Dec 2002 05:40:23 +0100
To: "Richard Norman" <normri@samc.com>
Cc: <html-tidy@w3.org>
Message-ID: <3e597b1f.210986322@smtp.bjoern.hoehrmann.de>

* Richard Norman wrote:
>In regards to this question,  is it good HTML practice to escape all
>your script tags with a CDATA markers?

No, <script> and <style> are already CDATA in HTML. Using XHTML, you
need them if your <script> or <style> element contains markup
characters, i.e. any of "]]>", "&" or "<", but you should use external
scripts/styles if it contains them, thus, CDATA sections are never good
practise.
Received on Friday, 6 December 2002 23:39:59 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:39:48 UTC