From de76a0925c8dd1042778eea13d081f5af4ad1565 Mon Sep 17 00:00:00 2001 From: janschoenherr Date: Fri, 7 Sep 2018 16:10:07 +0200 Subject: [PATCH] improve isNode check --- src/js/util/lang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/util/lang.js b/src/js/util/lang.js index 631ab9e3ca..739b03f230 100644 --- a/src/js/util/lang.js +++ b/src/js/util/lang.js @@ -88,7 +88,7 @@ export function isJQuery(obj) { } export function isNode(obj) { - return obj instanceof Node || isObject(obj) && obj.nodeType === 1; + return obj instanceof Node || isObject(obj) && obj.nodeType >= 1; } const {toString} = objPrototype;