13 Jun
2004
13 Jun
'04
1:50 a.m.
On Sat, 2004-06-12 at 01:55, Bryce Harrington wrote:
When I change line 225 from this:
$parent->comment($data);
to this:
if ($parent) { $parent->comment($data); }
The problem goes away. For my purpose, dropping comments is fine; I imagine there is probably a better solution, and would love to hear it.
Inkscape actually currently drops top-level comments the same way, for the same reasons (unless I fixed it recently and forgot -- but I don't recall figuring out the proper way to deal with it).
Having checked, such comments are definitely valid, though:
http://www.w3.org/TR/2004/REC-xml-20040204/#NT-prolog
-mental