title: Javascript generated link does not display in Firefox
body: <p>I'm creating a bilingual site with each language version stored in a separate directory. I then use the javascript below to generate a link that will look for the language directory in the URL and replace it with the other directory to switch between languages. </p>
  
  <pre><code>(function () {
    // this assumes you're on the en version and want to switch to chi
    var holder = document.createElement('div');
    var url = window.location.href.replace('/eng/', '/chi/');
    var link = document.createElement('a');
  
    link.innerText = '中文'; // or whatever the link should be
    link.href = url;
    holder.appendChild(link);
    document.write(holder.innerHTML);
  })();
  </code></pre>
  
  <p>It works fine in Chrome and IE, but Firefox is not displaying the link at all. Please help!</p>