diff --git a/src/clone-node.ts b/src/clone-node.ts index 5dfcd117..e9ebcac9 100644 --- a/src/clone-node.ts +++ b/src/clone-node.ts @@ -72,7 +72,7 @@ async function cloneSingleNode( const isSlotElement = (node: HTMLElement): node is HTMLSlotElement => node.tagName != null && node.tagName.toUpperCase() === 'SLOT' -const isSVGElement = (node: HTMLElement): node is HTMLSlotElement => +const isSVGElement = (node: Element): node is SVGElement => node.tagName != null && node.tagName.toUpperCase() === 'SVG' async function cloneChildren(