<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Dealing with unqualified HREF values (Part 2)</title>
	<atom:link href="http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<pubDate>Fri, 05 Dec 2008 00:31:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: pbfranklin.mtech@gmail.com</title>
		<link>http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-561286</link>
		<dc:creator>pbfranklin.mtech@gmail.com</dc:creator>
		<pubDate>Wed, 19 Dec 2007 14:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-561286</guid>
		<description>could please any one tell how to get the href value from page in script function in the same page....</description>
		<content:encoded><![CDATA[<p>could please any one tell how to get the href value from page in script function in the same page&#8230;.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Julien Royer</title>
		<link>http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-417805</link>
		<dc:creator>Julien Royer</dc:creator>
		<pubDate>Fri, 19 Oct 2007 08:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-417805</guid>
		<description>@brothercake: thank you for your answer. I thought the browser would wait for the image to be added to the document tree before making the server request, but you seem to be right.

I don't understand why browsers don't offer the possibility to natively qualify an URL.</description>
		<content:encoded><![CDATA[<p>@brothercake: thank you for your answer. I thought the browser would wait for the image to be added to the document tree before making the server request, but you seem to be right.</p>
<p>I don&#8217;t understand why browsers don&#8217;t offer the possibility to natively qualify an URL.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: brothercake</title>
		<link>http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-416734</link>
		<dc:creator>brothercake</dc:creator>
		<pubDate>Thu, 18 Oct 2007 05:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-416734</guid>
		<description>Yup that's a pretty neat hack, and in most cases works perfectly well. 

My major concern with it is that every time it's used it makes a server request, which adds to the latency and process overhead of an application that uses it, as well as making it unsuitable for use in abstraction (where you don't have access to a document object). It will also fail if the href is an empty string (returning an empty string, instead of a reference to the parent folder).

It's the server request thing that would make me not want to use it; but still, it's a nice solution :)</description>
		<content:encoded><![CDATA[<p>Yup that&#8217;s a pretty neat hack, and in most cases works perfectly well. </p>
<p>My major concern with it is that every time it&#8217;s used it makes a server request, which adds to the latency and process overhead of an application that uses it, as well as making it unsuitable for use in abstraction (where you don&#8217;t have access to a document object). It will also fail if the href is an empty string (returning an empty string, instead of a reference to the parent folder).</p>
<p>It&#8217;s the server request thing that would make me not want to use it; but still, it&#8217;s a nice solution :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Julien Royer</title>
		<link>http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-415851</link>
		<dc:creator>Julien Royer</dc:creator>
		<pubDate>Wed, 17 Oct 2007 11:49:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-415851</guid>
		<description>@logic_earth: the src attribute is a complex attribute (a setter/getter couple), which does as far as I know consistently return the qualified URL in the current browsers (FF, IE, Opera, Safari).</description>
		<content:encoded><![CDATA[<p>@logic_earth: the src attribute is a complex attribute (a setter/getter couple), which does as far as I know consistently return the qualified URL in the current browsers (FF, IE, Opera, Safari).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: logic_earth</title>
		<link>http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-415801</link>
		<dc:creator>logic_earth</dc:creator>
		<pubDate>Wed, 17 Oct 2007 11:02:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-415801</guid>
		<description>I don't understand Julien, how does that snippet make a qualified URI?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand Julien, how does that snippet make a qualified URI?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Julien Royer</title>
		<link>http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-415704</link>
		<dc:creator>Julien Royer</dc:creator>
		<pubDate>Wed, 17 Oct 2007 08:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/10/17/dealing-with-unqualified-href-values-part-2/#comment-415704</guid>
		<description>I think there is a much more easier solution:
&lt;pre&gt;&lt;code class="javascript"&gt;function qualifyHREF(href) {
  var img = document.createElement("img");
  img.src = url;
  return img.src;
}&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I think there is a much more easier solution:</p>
<pre><code class="javascript">function qualifyHREF(href) {
  var img = document.createElement("img");
  img.src = url;
  return img.src;
}</code></pre>]]></content:encoded>
	</item>
</channel>
</rss>
