The error message “DOMException: Failed to execute ‘insertBefore’ on ‘Node’: The node before which the new node is to be inserted is not a child of this node” indicates that there is an attempt to insert a new node before another node, but the reference node (the node before which the new node is to… Continue reading DOMException: Failed to execute ‘insertBefore’ on ‘Node’: The node before which the new node is to be inserted is not a child of this node.