1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

Fix removeUnusedNS not counting usage in <svg> tag

Close #1107
This commit is contained in:
GreLI
2019-05-19 20:44:36 +03:00
parent 5f70831868
commit 95f7603983
2 changed files with 12 additions and 1 deletions

View File

@ -66,7 +66,9 @@ exports.fn = function(data) {
svgElem = item;
}
} else if (xmlnsCollection.length) {
}
if (xmlnsCollection.length) {
// check item for the ns-attrs
if (item.prefix) {