Hi,
I need to traverse the entire DOM for loaded URLs and make read-only access to each DOM node.
I subclassed CefDOMVisitor and made the following call from the OnProcessMessageReceived() method of CefRenderProcessHandler.
This message to the render process is being made from the OnLoadEnd() method of the CefLoadHandler.
browser->GetMainFrame()->VisitDOM(new MyDOMVisitor(browser));
This seems to work well for static URIs and I can traverse the entire DOM.
But for more complicated URLs, the CefDOMDocument only contains the shell nodes.
For example, for www.google.com, the Visit method of my CefDOMVisitor is called with a CefDOMDocument that has are empty BODY and SCRIPT nodes.
Any idea what could be going wrong?
Thanks.