<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tender Lovemaking &#187; csspool</title>
	<atom:link href="http://tenderlovemaking.com/category/csspool/feed/" rel="self" type="application/rss+xml" />
	<link>http://tenderlovemaking.com</link>
	<description>The act of making love, tenderly.</description>
	<lastBuildDate>Thu, 16 Feb 2012 17:10:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>CSSPoolのドキュメンテーション</title>
		<link>http://tenderlovemaking.com/2007/12/01/csspool%e3%81%ae%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3/</link>
		<comments>http://tenderlovemaking.com/2007/12/01/csspool%e3%81%ae%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3/#comments</comments>
		<pubDate>Sat, 01 Dec 2007 20:13:46 +0000</pubDate>
		<dc:creator>Aaron Patterson</dc:creator>
				<category><![CDATA[computadora]]></category>
		<category><![CDATA[csspool]]></category>

		<guid isPermaLink="false">http://tenderlovemaking.com/2007/12/01/csspool%e3%81%ae%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3/</guid>
		<description><![CDATA[日本語を練習していました。日本語のドキュメンテーションにCSSPoolを書くと思います。でも、日本語を書くのは難しで私は遅い！www!]]></description>
			<content:encoded><![CDATA[<p>日本語を練習していました。日本語のドキュメンテーションにCSSPoolを書くと思います。でも、日本語を書くのは難しで私は遅い！www!</p>
]]></content:encoded>
			<wfw:commentRss>http://tenderlovemaking.com/2007/12/01/csspool%e3%81%ae%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More CSSPool Fun</title>
		<link>http://tenderlovemaking.com/2007/11/15/more-csspool-fun/</link>
		<comments>http://tenderlovemaking.com/2007/11/15/more-csspool-fun/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 08:08:08 +0000</pubDate>
		<dc:creator>Aaron Patterson</dc:creator>
				<category><![CDATA[computadora]]></category>
		<category><![CDATA[csspool]]></category>

		<guid isPermaLink="false">http://tenderlovemaking.com/2007/11/15/more-csspool-fun/</guid>
		<description><![CDATA[I just finished up a matching method on CSSPool. So you can pass an hpricot node to a selector AST, and determine whether the node matches or not. Lets say for example that you had an &#8230; <a class="more-link" href="http://tenderlovemaking.com/2007/11/15/more-csspool-fun/">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just finished up a matching method on <a href="http://csspool.rubyforge.org/">CSSPool</a>.  So you can pass an hpricot node to a selector AST, and determine whether the node matches or not.</p>
<p>Lets say for example that you had an html document and a css document, and you wanted to know what selectors matched a given hpricot node, you could do something like this:</p>
<pre class="brush: ruby; title: ; notranslate">
class DH &lt; CSS::SAC::DocumentHandler
  def initialize(node)
    @node = node
  end
  def start_selector(selectors)
    selectors.each { |sel| p sel if sel =~ @node }
  end
end
parser = CSS::SAC::Parser.new(DH.new(some_hpricot_node))
parser.parse(File.read(ARGV[0]))
</pre>
<p>I think I will probably release what I have in trunk soon.  I will probably add a new document handler for 0.2.0 that collects all selectors and properties together, and give a nice interface for finding styles that apply to an hpricot node.</p>
]]></content:encoded>
			<wfw:commentRss>http://tenderlovemaking.com/2007/11/15/more-csspool-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

