Hello, What is the correct way to create an independent copy of an HTMLDocument in a BHO? Specifically, what we want to do is: 1) User navigates to a web page 2) Create a copy of that web page 3) Perform operations on the copy of the webpage, such that the instance that the user is working with is not affected by our operations. It is very important that the copy is an exact replica of the original document. I understand that there are a variety of ways to do this, but some fail miserably and others have side effects. Any help would be greatly appreciated. Thanks, Dan
Daniel McCann wrote: > What is the correct way to create an independent copy of an > HTMLDocument in a BHO? Specifically, what we want to do is: > > 1) User navigates to a web page > 2) Create a copy of that web page > 3) Perform operations on the copy of the webpage, such that the > instance that the user is working with is not affected by our > operations. Try calling IHTMLDOMNode::cloneNode on document.documentElement. -- With best wishes, Igor Tandetnik With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925