title: Get a relative path with jquery .attr() property with IE7
body: <p>This code gets the path in all browsers - except ie7, when it returns the full url</p>
  
  <pre><code>$(selector).attr('href');
  </code></pre>
  
  <p>How do I adapt this code to always return the path?</p>
  
  <pre><code>/foo/bar/x.html
  </code></pre>
  
  <p>not</p>
  
  <pre><code>http://www.sample.com/foo/bar/x.html
  </code></pre>