title: Loading dojo fails in internet explorer 8
body: <p>
  It fails after doing this:</p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;script type="text/javascript" src="/js/dojo-release-1.7.2-src/dojo/dojo.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>throwing an error on the statement (in this version, 1.7.2, it is line 260)</p>
  
  <pre class="lang-js prettyprint-override"><code>return new XMLHttpRequest();
  </code></pre>
  
  <p>being: "TypeError: Object doesn't support this method or property"</p>
  
  <p>The silly thing is that this line is execute a lot of times (maybe even more than 100) without any problem, and it doesn't seem to be dependent on any variables. Unfortunately, at some point it fails. I swapped the line with:</p>
  
  <pre class="lang-js prettyprint-override"><code>try{ 
      foo = new window.XMLHttpRequest();
      return foo;
  } catch(e)  {
      console.log("OUCH, ERROR.");
      console.log(typeof window.XMLHttpRequest);
      console.log(e);
  }
  </code></pre>
  
  <p>which outputs:</p>
  
  <pre class="lang-js prettyprint-override"><code>OUCH ERROR.
  object
  TypeError: Object doesn't support this method or property
  </code></pre>
  
  <p>I am quite lost, as window.XMLHttpRequest seems to be an object, why can't I 'new' it? Any suggestion on how to debug this would be welcome.</p>
  
  <p>What I find absolutely confusing is that this error only occurs when I go to this page using a link. when I refresh the page using F5, everything works, no errors, nothing.</p>
  
  <p>Moreover, it runs flawless in internet explorer 9, firefox and chrome.</p>