How to programmatically turn off quirks mode in IE8 WebBrowser control?

Tony the Pony picture Tony the Pony · Mar 14, 2009 · Viewed 34.9k times · Source

I want to use IE8 as a WebBrowser control in a C# application. How can I disable "quirks mode" and force IE into standards compliance (as far as it is implemented)?

Answer

Elijah picture Elijah · Mar 20, 2009

If you don't want to use the registry key technique, you could insert the following tag:

<meta http-equiv="X-UA-Compatible" content="IE=8" />

The "content" attribute forces rendering in various modes.