Get actual href used in document instead of full path?
<pre><code>&lt;a href='/a01'&gt;&lt;/a&gt;
</code></pre>

<p>If I were to check .href of that using javascript, it would give the full path, instead of /a01.</p>

<p>Using getAttribute does return the full path, however it is much slower than .href. Is there a fast way to get the actual href?</p>
