title: appendChild in old IE browsers
body: <p>I am trying to create a new Element in my javascript code and append it to one of my elements. But it seems that old IE browsers do not support this function and my code breaks on the line where I use appendChild function.</p>
  
  <pre><code>var child = document.createElement('span');
  child.innerHTML = "Hello World!"; // Crashes here
  parent.appendChild(child); // And here
  </code></pre>
  
  <p>Is there any alternatives I can use for IE?</p>
  
  <p>Thank you.</p>
  
  <p>P.S the code works fine in modern browsers.</p>
  
  <p>UPD:
  The following code solves last part of my problem, I can append empty child to a parent:</p>
  
  <pre><code>var child = document.createElement('span');
  if (parent.insertAdjacentElement){
     parent.insertAdjacentElement('beforeEnd', child);
  }
  else if (parent.appendChild) {
     parent.appendChild(child);
  }
  </code></pre>
  
  <p>But I still need to put some data inside of child element. <code>createTextNode</code>, <code>innerHTML</code>, <code>setAttributes</code> do not work.</p>