title: How to set FEATURE_BROWSER_EMULATION to IE8 mode?
body: <p>We are using an embedded SWT Browser in a Java application. The SWT Browser wraps an IE8 WebBrowser Control object. I am running into the well-known issue that by default, the WebBrowser Control uses IE7 mode instead of IE8 mode. (See <a href="http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx" rel="noreferrer">http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx</a>)</p>
  
  <p>Per this and other articles, I am trying to set the FEATURE_BROWSER_EMULATION registry value for my application so that the Browser defaults to IE8 mode, but I am having mixed success.  Setting it to IE8 Standards Mode using the value 8000 does not work, butsetting it to "Forced" IE8 Standards Mode using value 8888 does.</p>
  
  <p>I am testing this by loading the page in the SWT Browser and then executing the javascript </p>
  
  <pre><code>browser.execute("alert(document.documentMode);");
  </code></pre>
  
  <p>The result is 7 if the key value does not exist or is 8000.  The result is 8 if the key value is 8888. The URL I am testing against is <a href="http://stackoverflow.com">http://stackoverflow.com</a>, which includes the following </p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
  </code></pre>
  
  <p>Does anyone know what I am doing wrong?</p>