diff --git a/src/util/dom.js b/src/util/dom.js
index <HASH>..<HASH> 100644
--- a/src/util/dom.js
+++ b/src/util/dom.js
@@ -4,7 +4,7 @@
  */
 export const domArray = (target, document) => {
   if (typeof target === 'string') return Array.from(document.querySelectorAll(target))
-  if (target instanceof HTMLElement) return [target]
+  if (target.tagName) return [target]
   if (target.jquery) return target.toArray()
   if (Array.isArray(target)) return target
   return []
@@ -17,7 +17,7 @@ export const domArray = (target, document) => {
  */
 export const domSelector = (target, document) => {
   if (typeof target === 'string') return document.querySelector(target)
-  if (target instanceof HTMLElement) return target
+  if (target.tagName) return target
   if (target.jquery) return target[0]
   return target
 }
fix: Make the domArray and domSelector compatible with different windows