Comment 2 for bug 199656

Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

sas is right. You shouldn't expect to be able to type <![CDATA[ ... ]]> into the text field and have it come out as real CDATA in the document, as that text field is interpreted as plain text (it's the unescaped contents of a text node) and not XML. If you typed SVG tags into the text field, you wouldn't expect that to create tags in the document either, would you? It's the same kind of thing.

For the sake of script readability, it would be reasonable for Inkscape to (for example) use CDATA as the preferred escaping method for the text content of particular tags like script, but you'll never see an option to disable both CDATA and &quot; type escaping so you can type in CDATA delimiters manually as text content -- that'd make it impossible for Inkscape to generate well-formed XML.

(Incidentally, the thing with putting Javascript comments on the CDATA delimiters isn't necessary in SVG, and shouldn't even be necessary in modern browsers.)