add original node name in cloned custom element

This commit is contained in:
jnunez 2022-03-09 16:20:05 +01:00
parent 6020386bbe
commit 3aa9e7b66d

View File

@ -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;