Open GoogleCodeExporter opened 8 years ago
SOLUTION: Target .NET 2 instead of .NET 4.
Original comment by fullmeta...@gmail.com
on 25 Apr 2011 at 12:49
Possible, it's because you click on IFrame. if target IFrame has different
domain - Document property for it isn't accessible for IE9 only.
Original comment by lobanvik...@gmail.com
on 30 May 2011 at 11:32
I found out that csEXWB definition of IWebBrowser2 is different from what .NET
actually generates for you as interop for SHDocVw. See
http://pinvoke.net/default.aspx/Interfaces/IWebBrowser2.html for full
definition. I replaced original IWebBrowser2 with this and now I can access
Document property also in IE9.
Original comment by xkatu...@gmail.com
on 16 Jun 2011 at 11:22
I think I have had similar issues where sometimes my application could not
access IHTMLElement.tagName, IHTMLDocument2.url (or Doc3?),
IHTMLDocument2.title and possibly others. I ended up using the mshtml library
for all DOM manipulations.
mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)
m_Browser.GetActiveDocument();
After reading xkatu's posting, I suspect it's not just the IWebBrowser2
interface that has issues but possibly others, too.
Original comment by cbwiena...@gmail.com
on 24 Sep 2013 at 5:41
Original issue reported on code.google.com by
fullmeta...@gmail.com
on 24 Apr 2011 at 10:29Attachments: