If I load a page in an iframe, run doc.querySelect to retrieve a node N, append N to doc.body by doc.body.appendChild(N), and then remove all children from doc.body until it reaches N, would N be guaranteed to be rendered the same way as pristine in Firefox or IE? So far in the example that I have tried, it’s alright, but I was wondering if it’d fail in other settings.
Thanks
I may be missing something, but why not copy the node, delete the children of doc.body, then append the node to the now empty doc.body? Use the cloneNode() method for copying the node.