diff --git a/src/dom/document-cloner.ts b/src/dom/document-cloner.ts index 08faa29..2afb4cf 100644 --- a/src/dom/document-cloner.ts +++ b/src/dom/document-cloner.ts @@ -174,6 +174,7 @@ export class DocumentCloner { createCustomElementClone(node: HTMLElement): HTMLElement { const clone = document.createElement('html2canvascustomelement'); + clone.setAttribute('html2-canvas-original-tag-name', node.tagName); copyCSSStyles(node.style, clone); return clone;