title: IE adding extra HTML tags while rendering
body: <p>I have following HTML markup as an input to be pasted onto IE browser in place of selected content on the browser:</p>
  
  <pre><code>&lt;span id='fs_892_3006_0' class='ParaMarked' FactType='NonNumeric' onclick='OnSpanClick("fs_892_3006_0", event)' IsFactMarked='true'&gt;
      &lt;fact id='892_3006_0' keyword=''&gt;
          &lt;P style="margin: 0pt 0pt 10pt; line-height: 115%; font-size: 11pt;"&gt;
              &lt;SPAN style="font-family: Calibri; font-size: 11pt;"&gt;THIS IS A TEST CONTENT 1&lt;/SPAN&gt;
          &lt;/P&gt;
      &lt;/fact&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>However, when the HTML is rendered, IE adds extra tags surrounding this HTML as shown below:</p>
  
  <pre><code>&lt;p style="margin: 0pt 0pt 10pt; line-height: 115%; font-size: 11pt;"&gt;
     &lt;span style="font-family: Calibri; font-size: 11pt;"&gt;
          &lt;span id="fs_892_3006_0" class="ParaMarked" onclick='OnSpanClick("fs_892_3006_0", event)' IsFactMarked="true" FactType="NonNumeric"&gt;
            &lt;fact id="892_3006_0" keyword=""&gt;
  &lt;/p&gt;&lt;p style="margin: 0pt 0pt 10pt; line-height: 115%; font-size: 11pt;"&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;THIS IS A TEST CONTENT 1&lt;/span&gt;&lt;/p&gt;&lt;/fact&gt;&lt;/span&gt;&lt;/span&gt;
  </code></pre>
  
  <p>I have tried below techniques to paste HTML onto browser, but gives same result: <br />
  Note: "markedText" is the javascript variable which contains the HTML input as mentioned above <br /><br />
   1. pasteHTML(markedText) : <a href="http://msdn.microsoft.com/en-us/library/ie/ms536656(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ie/ms536656(v=vs.85).aspx</a> <br />
   2. Rangy library : <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var sel = rangy.getSelection();<br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var range = sel.getRangeAt(0);<br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;range.deleteContents();<br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var node = range.createContextualFragment(markedText);<br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;range.insertNode(node);<br /><br /></p>
  
  <p>Any pointers on this would be appreciated.</p>
  
  <p>Thanks.</p>