Issue Details (XML | Word | Printable)

Key: DOXIA-326
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Lukas Theussl
Reporter: Lukas Theussl
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven Doxia

Xhtml sink should preserve CDATA within <script>

Created: 28/May/09 02:45 AM   Updated: 28/May/09 07:48 AM   Resolved: 28/May/09 07:48 AM
Component/s: Core, Module - Xdoc, Module - Xhtml
Affects Version/s: 1.1
Fix Version/s: 1.1.1

Time Tracking:
Not Specified


 Description  « Hide

Javascript code within <script> tags has to be escaped within CDATA to make it valid xhtml. However, even though the javascript code in the following xdoc gets correctly processed (see DOXIA-154):

<script type="text/javascript">
      <![CDATA[Javascript code goes here]]>
</script>

the CDATA itself is removed, making the xhtml invalid.



Lukas Theussl added a comment - 28/May/09 07:48 AM

Fixed in r779585

Note that in order to be valid xhtml, the whole script block should be written like:

<script type="text/javascript">
    //<![CDATA[
    Javascript code goes here
    //]]>
</script>