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):
the CDATA itself is removed, making the xhtml invalid.
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):
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>
Fixed in r779585
Note that in order to be valid xhtml, the whole script block should be written like: