[Petal] [BUG] XML CDATA is not supported by Petal

Chris Croome chris at webarchitects.co.uk
Wed Sep 3 13:15:08 BST 2003


Hi

In XHTML the best way to do Javascript and inline CSS is to use CDATA
marked sections, like this:

  <script type="text/javascript">
  <![CDATA[
  ... unescaped script content ...
  ]]>
  </script>

  http://www.w3.org/TR/xhtml1/#h-4.8

However Petal does not support this, the above is munged into this:

  <script type="text/javascript">

  ... unescaped script content ...

  </script>

For more on this please see the XML and XHTML specifications:

  2.7 CDATA Sections
  http://www.w3.org/TR/REC-xml#sec-cdata-sect

  4.8. Script and Style elements
  http://www.w3.org/TR/xhtml1/#h-4.8

Chris

-- 
Chris Croome                               <chris at webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   


More information about the Petal mailing list