@@ -155,7 +155,7 @@ this.singlefile.lib.helper = this.singlefile.lib.helper || (() => {
}
function getElementsInfo(win, doc, element, options, data = { usedFonts: new Map(), canvases: [], images: [], posters: [], shadowRoots: [], imports: [], markedElements: [] }, ascendantHidden) {
- const elements = Array.from(element.childNodes).filter(node => node instanceof win.HTMLElement);
+ const elements = Array.from(element.childNodes).filter(node => (node instanceof win.HTMLElement) || (node instanceof win.SVGElement));
elements.forEach(element => {
let elementHidden, elementKept, computedStyle;
if (!options.autoSaveExternalSave && (options.removeHiddenElements || options.removeUnusedFonts || options.compressHTML)) {