title: jQuery 1.11.1 appendChild error IE8 (Unexpected call to method or property access)
body: <p>SOLVED: I was appending to SECTION tag, whereas IE8 doesn't support this tag, parsing it as text/non-closed html tag, infamous cause to halt append! so I added a condition that creates HTML5 elements for IE versions below 9, as portrayed here and the problem went away, it actually fixed a bunch of other bugs as well! <a href="http://tatiyants.com/how-to-get-ie8-to-support-html5-tags-and-web-fonts/" rel="nofollow noreferrer">http://tatiyants.com/how-to-get-ie8-to-support-html5-tags-and-web-fonts/</a></p>
  
  <p>Sorry everyone. :(</p>
  
  <p>Testing a new website I built on IE8, using jQuery v1.x (1.11.1). Using HTML5, code is validated.</p>
  
  <p>I have this snippet inside a success function of an ajax function:</p>
  
  <pre><code>$('.product_details_contact_form_wrapper').detach().appendTo('#primary');
  </code></pre>
  
  <p>For some reason, under Chrome and Firefox it's all dandy, IE11 as well. Problem occurs when I set IE11 to emulate IE8. Then, I get a script pause and IE is complaining over appendChild in the jquery library code:</p>
  
  <p>IE11(8) Inspector directs to <code>b.appendChild(a)</code>, marked with yellow and: </p>
  
  <blockquote>
    <p>"Unexpected call to method or property access." marked with red, beneath it.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/CC1BN.jpg" alt="enter image description here"></p>