From 99db1a5110ec0b8b7386af242e55cfef76d28655 Mon Sep 17 00:00:00 2001 From: Eric Willis Date: Thu, 9 Mar 2017 20:09:10 +0000 Subject: [PATCH] Adding `Node` to the find lib --- lib/find.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/find.js b/lib/find.js index 2cce46e..f6722b2 100644 --- a/lib/find.js +++ b/lib/find.js @@ -2,7 +2,7 @@ import findOne from './findOne'; import isWindow from './isWindow'; function find(selector, context = null) { - if (selector instanceof HTMLElement || isWindow(selector)) { + if (selector instanceof HTMLElement || selector instanceof Node || isWindow(selector)) { return [selector]; } else if (selector instanceof NodeList) { return [].slice.call(selector);