<?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: jQuery CSS parser</title>
	<atom:link href="http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/feed/" rel="self" type="application/rss+xml" />
	<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/</link>
	<description>Thoughts on web design and programming from a very occasional volunteer webmaster</description>
	<lastBuildDate>Fri, 03 Feb 2012 05:24:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Hacking at 0300 : jQuery CSS parser - EtondeGroup Blog of Web Applications &#124; EtondeGroup Blog of Web Applications</title>
		<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/comment-page-1/#comment-13720</link>
		<dc:creator>Hacking at 0300 : jQuery CSS parser - EtondeGroup Blog of Web Applications &#124; EtondeGroup Blog of Web Applications</dc:creator>
		<pubDate>Fri, 13 Jan 2012 12:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=251#comment-13720</guid>
		<description>[...] more here: Hacking at 0300 : jQuery CSS parser  Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers [...]</description>
		<content:encoded><![CDATA[<p>[...] more here: Hacking at 0300 : jQuery CSS parser  Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/comment-page-1/#comment-4099</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sun, 01 May 2011 16:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=251#comment-4099</guid>
		<description>Thanks for looking into this.  I think I have been running into caching on my server.  It&#039;s working great now.</description>
		<content:encoded><![CDATA[<p>Thanks for looking into this.  I think I have been running into caching on my server.  It&#8217;s working great now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/comment-page-1/#comment-4072</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Fri, 29 Apr 2011 08:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=251#comment-4072</guid>
		<description>@Mark:
I&#039;m not getting any errors with jQuery 1.5.2 from the Google CDN; I just updated the &lt;a href=&quot;/blog/blogfiles/cssparser/cssparsertest.php&quot; rel=&quot;nofollow&quot;&gt;demo &lt;/a&gt; to use the CDN and it&#039;s working fine. Can you post a sample page using 1.5.2 (and including all the code directly rather than using head.js) and I can try to figure it out?
--Danny</description>
		<content:encoded><![CDATA[<p>@Mark:<br />
I&#8217;m not getting any errors with jQuery 1.5.2 from the Google CDN; I just updated the <a href="/blog/blogfiles/cssparser/cssparsertest.php" rel="nofollow">demo </a> to use the CDN and it&#8217;s working fine. Can you post a sample page using 1.5.2 (and including all the code directly rather than using head.js) and I can try to figure it out?<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/comment-page-1/#comment-4053</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 25 Apr 2011 15:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=251#comment-4053</guid>
		<description>Danny,

I recently tried to upgrade to jQuery version 1.5.2 and ran into an error (str.replace is not a function - line 163).

I have a test page working with version 1.4.4:
http://markschamel.com/projects/Atom/index.html

I&#039;ve tried putting a local copy of 1.5.2 on my server and using Google&#039;s CDN.  Both options result in the same error.

Thanks for the great library!</description>
		<content:encoded><![CDATA[<p>Danny,</p>
<p>I recently tried to upgrade to jQuery version 1.5.2 and ran into an error (str.replace is not a function &#8211; line 163).</p>
<p>I have a test page working with version 1.4.4:<br />
<a href="http://markschamel.com/projects/Atom/index.html" rel="nofollow">http://markschamel.com/projects/Atom/index.html</a></p>
<p>I&#8217;ve tried putting a local copy of 1.5.2 on my server and using Google&#8217;s CDN.  Both options result in the same error.</p>
<p>Thanks for the great library!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/comment-page-1/#comment-3424</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Mon, 28 Feb 2011 21:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=251#comment-3424</guid>
		<description>Excellent Danny.  I haven&#039;t looked at the implementation but I assume that you would hold that rule for really any functional notation as CSS3 attributes moves forward and beyond.

Nice library.</description>
		<content:encoded><![CDATA[<p>Excellent Danny.  I haven&#8217;t looked at the implementation but I assume that you would hold that rule for really any functional notation as CSS3 attributes moves forward and beyond.</p>
<p>Nice library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/comment-page-1/#comment-3423</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Mon, 28 Feb 2011 21:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=251#comment-3423</guid>
		<description>@Brian:
You are right about the URL; I always put the URL in quotes. Note that the W3C realize that URL&#039;s aren&#039;t consistent with the grammar as a whole and have to add the note about &lt;em&gt;URIs may contain characters that would otherwise be used as delimiters&#8230;&lt;/em&gt;.
Fixing this is straightforward if tedious: the lines in &lt;code&gt;parsedeclarations&lt;/code&gt; of
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;decl = decl.split(&#039;:&#039;);
parsed[restore(decl[0])] = restore(decl[1]);&lt;/code&gt;&lt;/pre&gt;
would have to replace &lt;code&gt;decl[1]&lt;/code&gt; with &lt;code&gt;decl.slice(1).join(&#039;:&#039;)&lt;/code&gt;.
I&#039;ll get on it.
--Danny</description>
		<content:encoded><![CDATA[<p>@Brian:<br />
You are right about the URL; I always put the URL in quotes. Note that the W3C realize that URL&#8217;s aren&#8217;t consistent with the grammar as a whole and have to add the note about <em>URIs may contain characters that would otherwise be used as delimiters&hellip;</em>.<br />
Fixing this is straightforward if tedious: the lines in <code>parsedeclarations</code> of</p>
<pre><code class="language-javascript">decl = decl.split(':');
parsed[restore(decl[0])] = restore(decl[1]);</code></pre>
<p>would have to replace <code>decl[1]</code> with <code>decl.slice(1).join(':')</code>.<br />
I&#8217;ll get on it.<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/comment-page-1/#comment-3422</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Mon, 28 Feb 2011 19:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=251#comment-3422</guid>
		<description>@Danny,

I think that that cannot be the case for functional values as even the CSS specs themselves have colons in, for example, the call to url().  See  http://www.w3.org/TR/CSS21/syndata.html#uri

Yes/No?</description>
		<content:encoded><![CDATA[<p>@Danny,</p>
<p>I think that that cannot be the case for functional values as even the CSS specs themselves have colons in, for example, the call to url().  See  <a href="http://www.w3.org/TR/CSS21/syndata.html#uri" rel="nofollow">http://www.w3.org/TR/CSS21/syndata.html#uri</a></p>
<p>Yes/No?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/comment-page-1/#comment-3417</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Mon, 28 Feb 2011 15:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=251#comment-3417</guid>
		<description>@Brian:
The way I&#039;m reading it, the &lt;a href=&quot;http://www.w3.org/TR/CSS21/grammar.html&quot; rel=&quot;nofollow&quot;&gt;grammar for CSS&lt;/a&gt; specifies that non=&quot;identifier&quot; characters (&lt;code&gt;[-_A-Za-z0-9]&lt;/code&gt;) need to be escaped with backslashes, and the parser recognizes that. Try:
&lt;code&gt;something(foo\:bar)&lt;/code&gt;
The parser uses &lt;a href=&quot;http://www.w3schools.com/jsref/jsref_split.asp&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;split&lt;/code&gt;&lt;/a&gt; on the &#039;:&#039;, so anything after the colon is lost if the colon is not escaped.
--Danny</description>
		<content:encoded><![CDATA[<p>@Brian:<br />
The way I&#8217;m reading it, the <a href="http://www.w3.org/TR/CSS21/grammar.html" rel="nofollow">grammar for CSS</a> specifies that non=&#8221;identifier&#8221; characters (<code>[-_A-Za-z0-9]</code>) need to be escaped with backslashes, and the parser recognizes that. Try:<br />
<code>something(foo\:bar)</code><br />
The parser uses <a href="http://www.w3schools.com/jsref/jsref_split.asp" rel="nofollow"><code>split</code></a> on the &#8216;:&#8217;, so anything after the colon is lost if the colon is not escaped.<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/comment-page-1/#comment-3416</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Mon, 28 Feb 2011 15:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=251#comment-3416</guid>
		<description>I&#039;m trying to use just the parsscss piece of this for another purpose, not CSS, but something with CSS conforming syntax - but I&#039;m running into a problem with the parser.  My property values in this purpose occasionally contain something like (unquoted)  something(foo:bar).  I don&#039;t see anything in the CSS recommendations/drafts which would disallow this, but the parser returns me only: &quot;something(foo&quot;.

Is it a weakness/but in the parser - or is there something in the CSS standards that I&#039;m missing?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use just the parsscss piece of this for another purpose, not CSS, but something with CSS conforming syntax &#8211; but I&#8217;m running into a problem with the parser.  My property values in this purpose occasionally contain something like (unquoted)  something(foo:bar).  I don&#8217;t see anything in the CSS recommendations/drafts which would disallow this, but the parser returns me only: &#8220;something(foo&#8221;.</p>
<p>Is it a weakness/but in the parser &#8211; or is there something in the CSS standards that I&#8217;m missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/01/16/jquery-css-parser/comment-page-1/#comment-2529</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Mon, 13 Dec 2010 00:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=251#comment-2529</guid>
		<description>@Mark:
Looking into it more (e.g, &lt;a href=&quot;https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript&quot; rel=&quot;nofollow&quot;&gt;Mozilla&lt;/a&gt;), the browsers claim that even an absolute URL with the protocol should be OK if it&#039;s the same protocol and host. I remember it not working when I wrote this, but things may have changed, or I may have gotten it wrong. Anyway, try it with URL&#039;s without the protocol and see if it works.
--Danny</description>
		<content:encoded><![CDATA[<p>@Mark:<br />
Looking into it more (e.g, <a href="https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript" rel="nofollow">Mozilla</a>), the browsers claim that even an absolute URL with the protocol should be OK if it&#8217;s the same protocol and host. I remember it not working when I wrote this, but things may have changed, or I may have gotten it wrong. Anyway, try it with URL&#8217;s without the protocol and see if it works.<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
</channel>
</rss>

