From d5ae92cc6abbbc2200d02654b15a8f93a4f488e9 Mon Sep 17 00:00:00 2001 From: ylemkimon Date: Tue, 30 Aug 2022 06:44:26 +0900 Subject: [PATCH] Update contrib/auto-render/auto-render.js --- contrib/auto-render/auto-render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/auto-render/auto-render.js b/contrib/auto-render/auto-render.js index 0170f4173f..eceee5b980 100644 --- a/contrib/auto-render/auto-render.js +++ b/contrib/auto-render/auto-render.js @@ -61,7 +61,7 @@ const renderElem = function(elem, optionsCopy) { let textContentConcat = childNode.textContent; let sibling = childNode.nextSibling; let nSiblings = 0; - while (sibling && (sibling.nodeType === 3)) { + while (sibling && (sibling.nodeType === Node.TEXT_NODE)) { textContentConcat += sibling.textContent; sibling = sibling.nextSibling; nSiblings++;