Inkscape is changing CDATA section to &something; notation

Post questions on how to use or achieve an effect in Inkscape.
meises
Posts: 2
Joined: Mon Oct 08, 2012 8:24 pm

Inkscape is changing CDATA section to &something; notation

Postby meises » Mon Oct 08, 2012 8:35 pm

When Inkscape is saving document, where is javascript with something between CDATA, like this:

Code: Select all

<script type="text/javascript">
  //<![CDATA[
    document.write('something nasty<>&');
  //]]>
</script>


Then Inkscape will remove CDATA section and replace it with &something; notation like this:

Code: Select all

<script type="text/javascript">
  //<![CDATA[
    document.write('something nasty&lt;&gt;&amp;');
  //]]>
</script>


The meaning is equivalent, but this behaviour is unpleasant, because it could make the script unreadable.

This bug was treated in https://bugs.launchpad.net/inkscape/+bug/199656

My Problem is, that Inkscape still is changing CDATA section to &something.
Are there any Properties I have to set to avoid this or was the bug improperly fixed?

Of Course I have downloaded and installed the latest developper-nightly-build of Inkscape.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Inkscape is changing CDATA section to &something; notati

Postby ~suv » Tue Oct 09, 2012 1:12 am

See my reply to your other comment about the same topic …


Return to “Help with using Inkscape”