<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JavaScript URI class</title>
	<atom:link href="http://www.poppa.se/blog/javascript-uri-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.poppa.se/blog/javascript-uri-class/</link>
	<description>My blog about web development and such</description>
	<lastBuildDate>Sat, 14 Jan 2012 14:56:56 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Pontus</title>
		<link>http://www.poppa.se/blog/javascript-uri-class/comment-page-1/#comment-168</link>
		<dc:creator>Pontus</dc:creator>
		<pubDate>Wed, 03 Feb 2010 18:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.poppa.se/blog/?p=319#comment-168</guid>
		<description>Thanks for your feedback. I&#039;ve implemented the the changes and found a bug in the original regexp which made it fail if no path was in the URI, e.g the regexp would fail on http://poppa.se and alike.

But that&#039;s also fixed (I hope)!</description>
		<content:encoded><![CDATA[<p>Thanks for your feedback. I&#8217;ve implemented the the changes and found a bug in the original regexp which made it fail if no path was in the URI, e.g the regexp would fail on <a href="http://poppa.se" rel="nofollow">http://poppa.se</a> and alike.</p>
<p>But that&#8217;s also fixed (I hope)!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre Setteskog</title>
		<link>http://www.poppa.se/blog/javascript-uri-class/comment-page-1/#comment-167</link>
		<dc:creator>Pierre Setteskog</dc:creator>
		<pubDate>Tue, 02 Feb 2010 10:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.poppa.se/blog/?p=319#comment-167</guid>
		<description>encodeURIComponent and decodeURIComponent works bether than unescape/escape

and if you to this change you can also delete params from querystring by assign them to null

queryString: function() {
        var tmp = [];
        for (var name in this.variables) {
            if (this.variables[name] != null) {
                tmp.push(encodeURIComponent(name) + &quot;=&quot; + encodeURIComponent(this.variables[name]));
            }
        }
        return tmp.length &amp;&amp; tmp.join(&quot;&amp;&quot;) &#124;&#124; null;
    },</description>
		<content:encoded><![CDATA[<p>encodeURIComponent and decodeURIComponent works bether than unescape/escape</p>
<p>and if you to this change you can also delete params from querystring by assign them to null</p>
<p>queryString: function() {<br />
        var tmp = [];<br />
        for (var name in this.variables) {<br />
            if (this.variables[name] != null) {<br />
                tmp.push(encodeURIComponent(name) + &#8220;=&#8221; + encodeURIComponent(this.variables[name]));<br />
            }<br />
        }<br />
        return tmp.length &amp;&amp; tmp.join(&#8221;&amp;&#8221;) || null;<br />
    },</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre Setteskog</title>
		<link>http://www.poppa.se/blog/javascript-uri-class/comment-page-1/#comment-166</link>
		<dc:creator>Pierre Setteskog</dc:creator>
		<pubDate>Tue, 02 Feb 2010 10:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.poppa.se/blog/?p=319#comment-166</guid>
		<description>Thank you wery usefull class!

var re = new RegExp(&quot;(?:([-+a-zA-Z0-9]+)://&quot; + // Scheme
                      &quot;((.[^:]*):?(.*)?@)?&quot; + // Userinfo
                      &quot;(.[^:/]*)&quot; + // Host
                      &quot;:?([0-9]{1,6})?)?&quot; + // Port
                      &quot;(/.[^?#]*)&quot; + // Path
                      &quot;[?]?(.[^#]*)?&quot; + // Query
                      &quot;#?(.*)?&quot;);             // Fragment

will make the class accept site relative paths /sdsds?p=1</description>
		<content:encoded><![CDATA[<p>Thank you wery usefull class!</p>
<p>var re = new RegExp(&#8221;(?:([-+a-zA-Z0-9]+)://&#8221; + // Scheme<br />
                      &#8220;((.[^:]*):?(.*)?@)?&#8221; + // Userinfo<br />
                      &#8220;(.[^:/]*)&#8221; + // Host<br />
                      &#8220;:?([0-9]{1,6})?)?&#8221; + // Port<br />
                      &#8220;(/.[^?#]*)&#8221; + // Path<br />
                      &#8220;[?]?(.[^#]*)?&#8221; + // Query<br />
                      &#8220;#?(.*)?&#8221;);             // Fragment</p>
<p>will make the class accept site relative paths /sdsds?p=1</p>
]]></content:encoded>
	</item>
</channel>
</rss>

