Maven Doxia

Xhtml sink should preserve CDATA within <script>

Details

  • Number of attachments :
    0

Description

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.

Activity

Hide
Lukas Theussl added a comment -

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>
Show
Lukas Theussl added a comment - 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>

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: