A
Alexander-z
Guest
Hi,
I have WinForms application using WebBrowser control.
It is well known that by default WebBrowser renders pages in IE7 document mode.
And there are two ways to make it render pages in "higher" mode:
1. setup FEATURE_BROWSER_EMULATION key in registry
2. using meta-tag X-UA-Compatible
I just wonder if these two approaches are equivalent?
It seems not, because "meta-tag" approach doesn't change browser mode (As I see user agent string is always MSIE 7.0 irregardless of value of this tag)
Actually it seems obvious because browser mode must be known before a page with meta-tag has been received.
The second question, can I combine these two approaches:
1. Setup FEATURE_BROWSER_EMULATION to use current version of IE (if installed IE10, WebBrowser will be forced to use IE10)
2. If some pages must be rendered in old rendering mode (for example IE7), they will contain meta-tag X-UA-Compatible with value "IE7".
So the question is will X-UA-Compatible precedes FEATURE_BROWSER_EMULATION ?
Men of experience please help to clarify the case.
Thank you in advance!
Continue reading...
I have WinForms application using WebBrowser control.
It is well known that by default WebBrowser renders pages in IE7 document mode.
And there are two ways to make it render pages in "higher" mode:
1. setup FEATURE_BROWSER_EMULATION key in registry
2. using meta-tag X-UA-Compatible
I just wonder if these two approaches are equivalent?
It seems not, because "meta-tag" approach doesn't change browser mode (As I see user agent string is always MSIE 7.0 irregardless of value of this tag)
Actually it seems obvious because browser mode must be known before a page with meta-tag has been received.
The second question, can I combine these two approaches:
1. Setup FEATURE_BROWSER_EMULATION to use current version of IE (if installed IE10, WebBrowser will be forced to use IE10)
2. If some pages must be rendered in old rendering mode (for example IE7), they will contain meta-tag X-UA-Compatible with value "IE7".
So the question is will X-UA-Compatible precedes FEATURE_BROWSER_EMULATION ?
Men of experience please help to clarify the case.
Thank you in advance!
Continue reading...