From 57dc7137b22a88c146eb63dc8229742f3a5305fb Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Sun, 24 Sep 2017 15:26:37 +0800 Subject: [PATCH] Fix wrong context for cloned element instanceof check --- src/Clone.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Clone.js b/src/Clone.js index 180980c..a89762f 100644 --- a/src/Clone.js +++ b/src/Clone.js @@ -372,6 +372,8 @@ export const cloneWindow = ( } if ( cloner.clonedReferenceElement instanceof cloneWindow.HTMLElement || + cloner.clonedReferenceElement instanceof + ownerDocument.defaultView.HTMLElement || cloner.clonedReferenceElement instanceof HTMLElement ) { resolve([