<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/" 
	xmlns:rcb="http://www.brothercake.com/ns/rcb/">
	<channel>
		<title>Discussion for CSSUtilities</title>
		<link>http://www.brothercake.com/discuss/resources/scripts/cssutilities/</link>
		<description>A JavaScript library that provides unique and indispensible methods for querying CSS style sheets.</description>
		<language>en</language>

		<item rcb:parse="yes">
			<title><![CDATA[RE: CSSUtilities]]></title>
			<link>http://www.brothercake.com/discuss/resources/scripts/cssutilities/#comment1</link>
			<dc:creator><![CDATA[ivo p]]></dc:creator>
			<dc:date>2010-04-05T12:16:53+00:00</dc:date>
			<description><![CDATA[ <p>i need to write back into the stylesheet.</p><p>is that possible as well?
<br />or is it planned for?</p> ]]></description>
		</item>

		<item rcb:parse="yes">
			<title><![CDATA[RE: CSSUtilities]]></title>
			<link>http://www.brothercake.com/discuss/resources/scripts/cssutilities/#comment2</link>
			<dc:creator><![CDATA[brothercake]]></dc:creator>
			<dc:date>2010-04-07T04:41:45+00:00</dc:date>
			<description><![CDATA[ <p>Yeah I did consider it, but I thought I&#039;d wait and see if anyone wanted that kinda stuff.</p><p>So what is it you&#039;d like to do - create stylesheets, add rules to existing stylesheet, modify existing rules?</p> ]]></description>
		</item>

		<item rcb:parse="yes">
			<title><![CDATA[RE: CSSUtilities]]></title>
			<link>http://www.brothercake.com/discuss/resources/scripts/cssutilities/#comment3</link>
			<dc:creator><![CDATA[ivo p]]></dc:creator>
			<dc:date>2010-04-07T13:46:29+00:00</dc:date>
			<description><![CDATA[ <p>I needed the tool to alter an existing rule in the sheet.</p><p>say </p><p>#someid
<br />{
<br />  color: #000000;
<br />}</p><p>needs to be changed to
<br />#someid
<br />{
<br />  color: #ff0000;
<br />}</p> ]]></description>
		</item>

		<item rcb:parse="yes">
			<title><![CDATA[RE: CSSUtilities]]></title>
			<link>http://www.brothercake.com/discuss/resources/scripts/cssutilities/#comment4</link>
			<dc:creator><![CDATA[brothercake]]></dc:creator>
			<dc:date>2010-04-08T15:37:29+00:00</dc:date>
			<description><![CDATA[ <p>Okay cool, I&#039;ll look into for an update. What I imagine I&#039;ll implement is a general &quot;write&quot; module, that gives you various capabilities to create and modify stylesheets.</p><p>Cheers :thumbsup:</p> ]]></description>
		</item>

		<item rcb:parse="yes">
			<title><![CDATA[RE: CSSUtilities]]></title>
			<link>http://www.brothercake.com/discuss/resources/scripts/cssutilities/#comment5</link>
			<dc:creator><![CDATA[ingig]]></dc:creator>
			<dc:date>2010-04-09T11:15:09+00:00</dc:date>
			<description><![CDATA[ <p>You absolutely saved me by posting this library, and it works great.</p><p>One question, can I specify which stylesheets the library should parse. Where I&#039;m using this library there are lot of extra css files that don&#039;t affect the layout off the page, but the library is parsing some 10 css files, when it should only parse 2 files. </p><p>Maybe would could define before the init, something like this
<br />CSSUtilities.define(&quot;stylesheets&quot;, &#039;.include&#039;);
<br />so link and style elements with class name include will be included or something like that.</p> ]]></description>
		</item>

		<item rcb:parse="yes">
			<title><![CDATA[RE: CSSUtilities]]></title>
			<link>http://www.brothercake.com/discuss/resources/scripts/cssutilities/#comment6</link>
			<dc:creator><![CDATA[brothercake]]></dc:creator>
			<dc:date>2010-04-11T16:29:12+00:00</dc:date>
			<description><![CDATA[ <p>You can filter your queries so that it only returns results from particular stylesheets, but I&#039;m guessing that&#039;s not the issue, right? You want to save the time and overhead of parsing those stylesheets at all, when you know you won&#039;t need them?</p><p>I&#039;m not sure link or style element class names would be the best way to proceed - it&#039;s not common to apply classes to those elements (though of course it couldn&#039;t hurt to have that option anyway); but  I&#039;m thinking maybe something that most stylesheets already employ, that would make it useful for existing pages - like a regular-expression URL pattern maybe, something like this:</p><p><code>CSSUtilities.define(&quot;stylesheets&quot;, &quot;(default|main|global)\.css&quot;);</code></p><p>Would you be able to express the conditions you want with something like that?</p> ]]></description>
		</item>

		<item rcb:parse="no">
			<title><![CDATA[RE: CSSUtilities]]></title>
			<link>http://www.brothercake.com/discuss/resources/scripts/cssutilities/#comment7</link>
			<dc:creator><![CDATA[ingig]]></dc:creator>
			<dc:date>2010-04-14T00:17:28+00:00</dc:date>
			<description><![CDATA[ <p>That sound about right, but how would you include a style element? </p><p>I implemented the class thing by changing the code a little, and it was a lot faster off course since it only needed to parse 2 stylesheet files instead of 10 or so. I altered getStyleSheetNodes() and added </p><p>if (allnodes[i].getAttribute(&#039;class&#039;) == &#039;include&#039;) {
<br /> stylenodes.push(allnodes[i]);
<br />}</p><p>I agree with you that class shouldn&#039;t be used, it was just my little hack.</p> ]]></description>
		</item>

		<item rcb:parse="yes">
			<title><![CDATA[RE: CSSUtilities]]></title>
			<link>http://www.brothercake.com/discuss/resources/scripts/cssutilities/#comment8</link>
			<dc:creator><![CDATA[brothercake]]></dc:creator>
			<dc:date>2010-04-14T01:58:35+00:00</dc:date>
			<description><![CDATA[ <p>Hmm good point, maybe then you should have a choice of attribute name and pattern-match for defining them. So your class option could be ratified something like this:</p><p><code>CSSUtilties.define(&quot;stylesheets&quot;, &quot;class=/include/&quot;);</code></p><p>And the URL pattern like this:</p><p><code>CSSUtilties.define(&quot;stylesheets&quot;, &quot;href=/(default|main|global)\.css/&quot;);</code></p><p>And so on, with whatever attributes and values you can identify the elements you want with. It would also have to be flexible enough to be able to address stylesheets included with @import statements in other stylesheets; so maybe &quot;url&quot; instead of &quot;href&quot;, or some additional syntax for specifying a property of the stylesheet other than an attribute of its owner element.</p><p>Perhaps there should be two definitions, for include and exclude:</p><p><code>CSSUtilities.define(&quot;include&quot;, &quot;class=/wanted/&quot;);
<br />CSSUtilities.define(&quot;exclude&quot;, &quot;class=/unwanted/&quot;);</code></p><p>Not sure. I&#039;ll have to give it some more thought, but as a basic idea - yup, that&#039;s definitely a winner, thanks :)
<br /></p> ]]></description>
		</item>

		<item rcb:parse="yes">
			<title><![CDATA[RE: CSSUtilities]]></title>
			<link>http://www.brothercake.com/discuss/resources/scripts/cssutilities/#comment9</link>
			<dc:creator><![CDATA[ingig]]></dc:creator>
			<dc:date>2010-04-14T11:28:05+00:00</dc:date>
			<description><![CDATA[ <p>Yes, it sounds like your are on the right track</p> ]]></description>
		</item>
	</channel>

</rss>
