Re: "commented" CDATA for <style>!

* 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