Prevent removal of metadata elements if they have only text nodes. Also added some unit tests.

This commit is contained in:
JSCHILL1 2009-04-15 10:18:32 -05:00
parent 7cfb655cff
commit 2cc9c00ef7
7 changed files with 58 additions and 4 deletions

6
unittests/empty-g.svg Normal file
View file

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg">
<g/>
<g>
<rect width="300" height="200" fill="green" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 118 B