title: IHTMLDocument2 and Internet Explorer 11 changes on Windows 7
body: <p>I use <code>TWebBrowser</code> to have HTML editor in my application and of course it depends on version of Internet Explorer installed. I noticed after installation of the brand new Internet Explorer 11 on Windows 7 that my editor has changed. Paragraphs no longer seem to have same HTML code.</p>
  
  <p>HTML generated before when I pressed enter key:</p>
  
  <pre><code>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
  </code></pre>
  
  <p>HTML generated now:</p>
  
  <pre><code>&lt;P&gt;&lt;BR&gt;&lt;/P&gt;
  </code></pre>
  
  <p>This gives me additional line in my editor which doesn't look right. <code>&lt;P&gt;</code> itself has a new line, <code>&lt;BR&gt;</code> is completely useless here.</p>
  
  <p>Is there a way to tell MSHTML/TWebBrowser control in edit mode which markup to use when enter key is pressed? For example, I've seen that some MS programs generate:</p>
  
  <pre><code>&lt;div&gt;&lt;font&gt;&lt;/font&gt;&lt;/div&gt;
  </code></pre>
  
  <p>When you press enter to get to new line.</p>
  
  <p>Also (if it is related) - is there a way to control which markup will be used when I use commands to set for example font-size (instead of obsolete size=1 to size=7 to have maybe CSS like "font-size:10px")</p>
  
  <p>Code samples in Delphi and C++ Builder welcome.</p>