From be65935357fce6505dcc8d399388a0af7d1604f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=8C=20Kyokut=C5=8D?= Date: Mon, 24 Jul 2023 21:24:07 -0500 Subject: [PATCH] fix: use `Document` replace `HTMLDocument` (#104) --- src/lodash/is-element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lodash/is-element.ts b/src/lodash/is-element.ts index a0f0742..2449879 100644 --- a/src/lodash/is-element.ts +++ b/src/lodash/is-element.ts @@ -3,6 +3,6 @@ * @return {Boolean} 是否HTML元素 */ const isElement = function (o: any): boolean { - return o instanceof Element || o instanceof HTMLDocument; + return o instanceof Element || o instanceof Document; }; export default isElement;