title: document.createElement is not working in IE8
body: <p>The document.createElement('a') tag is not working in IE8 in this snippet of code.  It works fine in chrome and firefox.  When I check through IE, it seems as if its the first line of code that's broken.</p>
  
  <pre><code>        item = document.createElement('a');
          item.setAttribute('id', 'memorize');
          item.innerHTML = "&lt;?php echo wzfactory::get_xml('menu_item', 4, $com); ?&gt;";
          item.setAttribute('class', 'menu_button');
          item.onclick = function() {redirect('memorizor', 'memorize', 0);};
          menu_div.appendChild(item);
  </code></pre>
  
  <p>Does anybody know why this is the case, and if there is a crappy browser workaround?  I haven't been able to find the workaround.</p>