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 10:04:40 +0100
To: Steffen Glückselig <steffen@gungfu.de>
Cc: html-tidy@w3.org
Message-ID: <4021b51f.63174399@smtp.bjoern.hoehrmann.de>

* Steffen Glückselig wrote:
>>> I'd like to second that. Additionally each time I run tidy, another
>>> CDATA-section gets added. Resulting in things like
>>> <style type="text/css">
>>>   /*<![CDATA[*/
>>>   /*<![CDATA[*/
>>>   /*<![CDATA[*/
>>>
>>>   /*]]>*/
>>>   /*]]>*/
>>>   /*]]>*/
>>>   </style>
>>
>> Could you send sample input/config options to reproduce this behaivour?
>
>My configuration-file looks something like this:
>
>[...]

Input:

  <style>
  p { color: red }
  </style>
  <p>...

Tidy:

  % tidy -config a b | tidy -config a | tidy -config a

Output:

  <?xml version="1.0" encoding="us-ascii"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  
    <style type="text/css">
    /*<![CDATA[*/
    p { color: red }
    /*]]>*/
    </style>
  
    <title></title>
  </head>
  
  <body>
    <p>...</p>
  </body>
  </html>

I.e., I am unable to reproduce this behaivour.
Received on Wednesday, 4 February 2004 04:05:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:53 UTC