diff --git a/packages/slate-html-serializer/src/index.js b/packages/slate-html-serializer/src/index.js index 11e256151..b7e689963 100644 --- a/packages/slate-html-serializer/src/index.js +++ b/packages/slate-html-serializer/src/index.js @@ -233,9 +233,10 @@ class Html { } const next = (elements) => { - if (typeof NodeList !== 'undefined' && elements instanceof NodeList) { + if (Object.prototype.toString.call(elements) == '[object NodeList]') { elements = Array.from(elements) } + switch (typeOf(elements)) { case 'array': return this.deserializeElements(elements)