You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the DOMException: Failed to execute 'insertBefore' on 'Node': This node type does not support this method. in child-list.ts:57: target.insertBefore(newNode, (nextSibling && getNode(nextSibling)) || null);. The target and newNode are text nodes (nodeName === "#text") and nextSibling is undefined. You cannot add children to a text node.
Could you please fix it by checking if (target.nodeType !== 3)?
Stacktrace:
Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': This node type does not support this method.
at workerdom.min.js:2:7552
at Uint16Array.forEach ()
at Object.execute (workerdom.min.js:2:7505)
at workerdom.min.js:2:10802
at Array.forEach ()
at syncFlush (workerdom.min.js:2:10604)
I am calling el.innerHTML = "..." in a loop.
The text was updated successfully, but these errors were encountered:
I get the
DOMException: Failed to execute 'insertBefore' on 'Node': This node type does not support this method.
in child-list.ts:57:target.insertBefore(newNode, (nextSibling && getNode(nextSibling)) || null);
. Thetarget
andnewNode
are text nodes (nodeName === "#text"
) andnextSibling
is undefined. You cannot add children to a text node.Could you please fix it by checking
if (target.nodeType !== 3)
?Stacktrace:
I am calling
el.innerHTML = "..."
in a loop.The text was updated successfully, but these errors were encountered: