Skip to content

Commit

Permalink
Update contrib/auto-render/auto-render.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ylemkimon committed Aug 29, 2022
1 parent be78bef commit d5ae92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/auto-render/auto-render.js
Expand Up @@ -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++;
Expand Down

0 comments on commit d5ae92c

Please sign in to comment.