W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2004

Re: "commented" CDATA for <style>!

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 04 Feb 2004 02:47:58 +0100
To: "Jelks Cabaniss" <jelks@jelks.nu>
Cc: <html-tidy@w3.org>
Message-ID: <40244dfb.36770633@smtp.bjoern.hoehrmann.de>

* Jelks Cabaniss wrote:
>Any chance for an option to *not* wrap the <style> section in "commented"
>CDATA sections?  There are no '<' or '&' characters needed in any version of
>CSS.  It would be sooo much nicer to have just a plain 
>  <style type="text/css">
>  </style>
>instead of the grotesque
>  <style type="text/css">
>  /*<![CDATA[*/
>  /*]]>*/
>  </style>
>currently emitted with XHTML output.

Yes... Long standing issue, see http://tinyurl.com/2yham if you like. It
is however possible that style elements include <, & or ]]>, a reference
to a background image generated by a server side script, in generated
content or comments for example. The current escape code is in pprint.c,
it should be moved to clean.c and probably needs a rewrite to address
several bugs listed in the bug tracker. Patches most welcome! (as are
concrete proposals for configuration options).

>PS.  I tried sending this to the 'tidy-develop' list, but I keep getting an 
>	Unknown user: tidy-develop@lists.sourceforge.net
>error in the returned mail.

Works for me?!
Received on Tuesday, 3 February 2004 20:48:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC