title: AppendChild (Javascript) and Internet Explorer
body: <p>As a student and someone fairly new to web development, I'm experiencing the following seemingly strange problem in Javascript - but only in IE (IE9 to be precise; haven't yet tried IE10). In Firefox, the script works without any problems. </p>
  
  <p>The code is like this:</p>
  
  <pre><code>item = document.createElement('li'); alert("alert1");
  message = document.createTextNode("Hallo"); alert("alert2");
  item.appendChild(message); alert("alert3");    
  </code></pre>
  
  <p>In IE, alert1 and alert2 are shown, but not alert3. In other words, IE9 chokes on the third statement above (the appendChild), and never reaches alert3. Strange indeed.</p>
  
  <p>Using Google, I've found that there are known problems with appendChild in IE (at least in earlier versions). But none of the problems described, or the workarounds suggested, seem to match my simple code, as cited above.</p>
  
  <p>Thanks in advance for any suggestions.</p>
  
  <p>Edit to add: The console gives the following error message: "object doesn't support the property or method appendChild". </p>