0

I found that they sometimes don't correlate. For instance IWebBrowser2.ReadyState can have READYSTATE_LOADING value while IHtmlDocument2.readyState gives 'completed'. Is there anywhere documentation ? I see this behavior when I open a website in a new tab using middle click.

IWebBrowser::ReadyState

IHTMLDocument2::readyState

NN_
  • 1,593
  • 1
  • 10
  • 26
  • You can have multiple document instances per browser instance – Simon Mourier Nov 12 '17 at 07:13
  • What do you mean multiple documents? Can you give a sample of html page with such behavior? – NN_ Nov 13 '17 at 08:49
  • A browser is a browser, it can have windows, frames, etc... A page is a single document. https://social.msdn.microsoft.com/Forums/ie/en-US/497d9c38-02f5-4ac8-a928-a29213a7b90b/relationship-between-iwebbrowser2-ihtmlwindow-ihtmldocument?forum=ieextensiondevelopment – Simon Mourier Nov 13 '17 at 09:06

0 Answers0