Prevent removal of metadata elements if they have only text nodes. Also added some unit tests.
This commit is contained in:
parent
7cfb655cff
commit
2cc9c00ef7
7 changed files with 58 additions and 4 deletions
6
unittests/empty-g.svg
Normal file
6
unittests/empty-g.svg
Normal 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 |
Loading…
Add table
Add a link
Reference in a new issue