mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-28 17:39:57 +02:00
fix html-serializer for jsdom use
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user