mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
add original node name in cloned custom element
This commit is contained in:
parent
6020386bbe
commit
3aa9e7b66d
@ -174,6 +174,7 @@ export class DocumentCloner {
|
|||||||
|
|
||||||
createCustomElementClone(node: HTMLElement): HTMLElement {
|
createCustomElementClone(node: HTMLElement): HTMLElement {
|
||||||
const clone = document.createElement('html2canvascustomelement');
|
const clone = document.createElement('html2canvascustomelement');
|
||||||
|
clone.setAttribute('html2-canvas-original-tag-name', node.tagName);
|
||||||
copyCSSStyles(node.style, clone);
|
copyCSSStyles(node.style, clone);
|
||||||
|
|
||||||
return clone;
|
return clone;
|
||||||
|
Loading…
Reference in New Issue
Block a user