title: Get the full URI from the href property of a link
body: <p>I would like to have a confirmation on some point.</p>
  
  <p>My goal is to always get the same string (which is the URI in my case) while reading the href property from a link. Example:</p>
  
  <p><code>&lt;a href="test.htm" /&gt;</code> with base_url = <a href="http://domain.name/" rel="noreferrer">http://domain.name/</a></p>
  
  <p><code>&lt;a href="../test.htm" /&gt;</code> with base_url = <a href="http://domain.name/domain/" rel="noreferrer">http://domain.name/domain/</a></p>
  
  <p><code>&lt;a href="http://domain.name/test.htm" /&gt;</code> with base_url = any folder from <a href="http://domain.name/" rel="noreferrer">http://domain.name/</a></p>
  
  <p>I need to get <code>http://domain.name/test.htm</code> from the 3 situations above (or any other identical string).</p>
  
  <p>After some tests, it appears that  <code>my_a_dom_node.href</code> always return the full-qualified URI, including the <a href="http://domaine.name" rel="noreferrer">http://domaine.name</a>, which should be okay for what I want. </p>
  
  <p>jQuery has a different behaviour and <code>$(my_a_dom_node).attr('href')</code> returns the content (text) that appears inside the HTML. So my trick is to use <code>$(my_a_dom_node).get(0).href</code> to get the full URI.</p>
  
  <p>The question is: can I rely on this?</p>