title: Javascript .pathname IE quirk?
body: <p>Consider the following Javascript:</p>
  
  <pre><code>var anchors = document.getElementsByTagName('a');
  for(var i=0; i &lt; anchors.length; i++)
  {
      alert(a.pathname);
  }
  </code></pre>
  
  <p>When I run this on a page that contains links in the format "<a href="http://foo.com/bar" rel="noreferrer">http://foo.com/bar</a>", in IE8 I get back a string that looks like "bar".  In Safari, Chrome, Firefox, I get back something like "/bar" (note the leading forward slash).</p>
  
  <p>Is IE at fault here, what's the deal?</p>