Inkscape strips processing instructions
Bug #199435 reported by
Petr Dlouhý
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Unassigned | ||
0.46.x |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Xml document is valid, if a php script (<?php ..... ?> ) is included, and Inkscape open such document correctly. The problem is, that when this document is saved, all scripts are gone (at least in my version - 0.46~pre1-
My workaround is to make Inkscape not remove php scripts is:
<!--
<?php
print "-"."->\n";
print "<!-"."- ";
?>
-->
But when you need to send HTTP Content-Type header, you must not use "<!--" before - so it is unusable.
Changed in inkscape: | |
milestone: | 0.46.1 → 0.47 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Well... since we do make an effort to preserve comments, we should probably make an effort to preserve XML processing instructions as well (which is how the XML parser sees PHP fragments).
Note that not all uses of PHP can be accomodated, only those where the XML document structure is valid without PHP expansion.