|
|
@@ -167,7 +167,10 @@ this.imagesMinifier = this.imagesMinifier || (() => {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- svgElement.setAttribute("class", imgElement.getAttribute("class"));
|
|
|
+ const className = imgElement.getAttribute("class");
|
|
|
+ if (className) {
|
|
|
+ svgElement.setAttribute("class", className);
|
|
|
+ }
|
|
|
const title = imgElement.getAttribute("title");
|
|
|
if (title) {
|
|
|
const titleElement = doc.createElementNS(SVG_NS, "title");
|