Saturday, October 15, 2022

Failed to execute 'removeChild' on 'Node'

Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

// Try to use firstChild etc when selecting element =>

document.querySelector('main').lastChild.innerHTML;

//

No comments:

Post a Comment