I have cloned one of the nodelist which contains the entire body tag contents. can you let me know how to remove the particular div named "footer" in the cloned contents., ie., from tempDocument.
var tempDocument = [nodeList][0].cloneNode(true);
Now tempDocument contains <body>......</body>
If I try to use
tempDocument.getElementByID;
or
nodeList][0].getElementById
I am facing below error
.getElementById is not a function