Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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)?

like image 477
Tony the Pony Avatar asked Mar 14 '09 21:03

Tony the Pony


People also ask

How do I know if my browser is in quirks mode?

In Firefox and Opera you can determine if your browser is in "quirks mode" by checking page info. Using document. compatMode , will tell you the mode you are in with most browsers.

What is quirks mode in Google Chrome?

Chrome Quirks is a fun extension that allows you to inject pre-loaded effects or custom CSS onto any webpage you visit. Developers can quickly and easily edit CSS and test ideas out. This extension appeals to the curious and the pranksters who can't help messing with their less tech-savvy friends!

What is quirks mode in Javascript?

In computing, quirks mode is a technique used by some web browsers for the sake of maintaining backward compatibility with web pages designed for old web browsers instead of strictly complying with W3C and IETF standards in standards mode.


1 Answers

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.

like image 177
Elijah Avatar answered Sep 28 '22 13:09

Elijah