Open robinchew opened 5 years ago
There are two issues here:
1 is tough. Currently we have thing => new thing.constructor
as the copy mechanism. I don't think it's in Patchinko's remit to special case DOM objects, where there's no unopinionated way to copy a node (should cloneNode
be passed true
?).
2 is a design mistake in Patchinko, I think. That merits its own issue - #23.
Following code causes
Illegal Constructor
error:Run above code in flems