Fix wrong context for cloned element instanceof check

This commit is contained in:
Niklas von Hertzen 2017-09-24 15:26:37 +08:00
parent 90a8422938
commit 57dc7137b2

View File

@ -372,6 +372,8 @@ export const cloneWindow = (
}
if (
cloner.clonedReferenceElement instanceof cloneWindow.HTMLElement ||
cloner.clonedReferenceElement instanceof
ownerDocument.defaultView.HTMLElement ||
cloner.clonedReferenceElement instanceof HTMLElement
) {
resolve([