<?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: A Little-known Way to Replace Some Scripts with CSS Counters</title>
	<atom:link href="http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Sat, 07 Nov 2009 23:35:20 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Meitar</title>
		<link>http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/comment-page-1/#comment-861406</link>
		<dc:creator>Meitar</dc:creator>
		<pubDate>Tue, 13 Jan 2009 11:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3554#comment-861406</guid>
		<description>@&lt;a href=&quot;#comment-861199&quot; rel=&quot;nofollow&quot;&gt;Anonymous&lt;/a&gt;: The answer to your question is: fundamentally, no. Once an image is viewed by a user it is already on the user&#039;s own machine.

I&#039;m not sure why you&#039;re asking that on this post, however, since CSS counters have nothing to do with preventing image extraction from pages.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-861199" rel="nofollow">Anonymous</a>: The answer to your question is: fundamentally, no. Once an image is viewed by a user it is already on the user&#8217;s own machine.</p>
<p>I&#8217;m not sure why you&#8217;re asking that on this post, however, since CSS counters have nothing to do with preventing image extraction from pages.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/comment-page-1/#comment-861199</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 13 Jan 2009 04:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3554#comment-861199</guid>
		<description>is there any way to stop images being taken from a web page?</description>
		<content:encoded><![CDATA[<p>is there any way to stop images being taken from a web page?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Meitar</title>
		<link>http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/comment-page-1/#comment-861131</link>
		<dc:creator>Meitar</dc:creator>
		<pubDate>Tue, 13 Jan 2009 01:20:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3554#comment-861131</guid>
		<description>@&lt;a href=&quot;#comment-861118&quot; rel=&quot;nofollow&quot;&gt;leadegroot&lt;/a&gt;: No worries, your comment didn&#039;t strike me as catty, and I appreciate the feedback.

Perhaps I wasn&#039;t clear enough in my introduction that I intended to simply state how there are many examples of replacing JavaScript with CSS-based techniques, such as Eric Meyer&#039;s early css/edge examples, and that the general trend of doing so can often be beneficial. I&#039;ve no evidence that this particular technique is anything beyond kinda neat and definitely makes you think about CSS and its capabilities. :)

That said, benchmarks for this technique in particular would be interesting, too.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-861118" rel="nofollow">leadegroot</a>: No worries, your comment didn&#8217;t strike me as catty, and I appreciate the feedback.</p>
<p>Perhaps I wasn&#8217;t clear enough in my introduction that I intended to simply state how there are many examples of replacing JavaScript with CSS-based techniques, such as Eric Meyer&#8217;s early css/edge examples, and that the general trend of doing so can often be beneficial. I&#8217;ve no evidence that this particular technique is anything beyond kinda neat and definitely makes you think about CSS and its capabilities. :)</p>
<p>That said, benchmarks for this technique in particular would be interesting, too.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: leadegroot</title>
		<link>http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/comment-page-1/#comment-861118</link>
		<dc:creator>leadegroot</dc:creator>
		<pubDate>Tue, 13 Jan 2009 00:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3554#comment-861118</guid>
		<description>If the argument promoting the neat technique is &quot;Replacing executable scripts with style sheets often improves performance&quot; then I&#039;d like to see some performance benchmarks to show that it is so.

And &quot;results in a more accessible page&quot;? I think experience has shown us that we need to be very careful in assuming a new technique makes a page more accessible rather than less. If the text may not be selectable and may not appear in the DOM... how likely is it that it improves accessibility?

Sorry to seem catty. Its definitely cool :) but practical and useful? That remains to be seen.</description>
		<content:encoded><![CDATA[<p>If the argument promoting the neat technique is &#8220;Replacing executable scripts with style sheets often improves performance&#8221; then I&#8217;d like to see some performance benchmarks to show that it is so.</p>
<p>And &#8220;results in a more accessible page&#8221;? I think experience has shown us that we need to be very careful in assuming a new technique makes a page more accessible rather than less. If the text may not be selectable and may not appear in the DOM&#8230; how likely is it that it improves accessibility?</p>
<p>Sorry to seem catty. Its definitely cool :) but practical and useful? That remains to be seen.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Meitar</title>
		<link>http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/comment-page-1/#comment-858282</link>
		<dc:creator>Meitar</dc:creator>
		<pubDate>Wed, 07 Jan 2009 00:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3554#comment-858282</guid>
		<description>I can foresee some situations where something like this might be useful. If you combine this with something like

ol:hover:after { /* display counters */ }

then you get a rollover for the &quot;Number of items in this list&quot; example. And you can certainly use sibling selectors, as long as the browser supports them and counters, of course.

You&#039;re right, memco, that it&#039;s kind of limited. I think this is partially by design and partially because CSS implementations just aren&#039;t quite up to scratch yet. zachleat&#039;s point about CSS expressions being less than perfect is also a good point, which is why I do think of this particular example as more of a theoretical showcase than anything for now. That said, I think the separation of content and presentation and, therefore, CSS expressions has more to do with design intent than it does technical ability, and from that perspective I don&#039;t think CSS expressions should be universally considered a Bad Thing.</description>
		<content:encoded><![CDATA[<p>I can foresee some situations where something like this might be useful. If you combine this with something like</p>
<p>ol:hover:after { /* display counters */ }</p>
<p>then you get a rollover for the &#8220;Number of items in this list&#8221; example. And you can certainly use sibling selectors, as long as the browser supports them and counters, of course.</p>
<p>You&#8217;re right, memco, that it&#8217;s kind of limited. I think this is partially by design and partially because CSS implementations just aren&#8217;t quite up to scratch yet. zachleat&#8217;s point about CSS expressions being less than perfect is also a good point, which is why I do think of this particular example as more of a theoretical showcase than anything for now. That said, I think the separation of content and presentation and, therefore, CSS expressions has more to do with design intent than it does technical ability, and from that perspective I don&#8217;t think CSS expressions should be universally considered a Bad Thing.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: zachleat</title>
		<link>http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/comment-page-1/#comment-858012</link>
		<dc:creator>zachleat</dc:creator>
		<pubDate>Tue, 06 Jan 2009 04:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3554#comment-858012</guid>
		<description>Oh sweet, CSS expressions are back.

Wait, what?</description>
		<content:encoded><![CDATA[<p>Oh sweet, CSS expressions are back.</p>
<p>Wait, what?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: memco</title>
		<link>http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/comment-page-1/#comment-858005</link>
		<dc:creator>memco</dc:creator>
		<pubDate>Tue, 06 Jan 2009 04:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3554#comment-858005</guid>
		<description>This seems kinda cool, but I can&#039;t think of a time when this could be used in my code.  I suppose if you can use sibling selectors then you could perhaps do table striping or something, but ultimately, it&#039;s pretty limited.</description>
		<content:encoded><![CDATA[<p>This seems kinda cool, but I can&#8217;t think of a time when this could be used in my code.  I suppose if you can use sibling selectors then you could perhaps do table striping or something, but ultimately, it&#8217;s pretty limited.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: KelliShaver</title>
		<link>http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/comment-page-1/#comment-857995</link>
		<dc:creator>KelliShaver</dc:creator>
		<pubDate>Tue, 06 Jan 2009 03:19:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3554#comment-857995</guid>
		<description>Neat trick, and something I didn&#039;t know about, but most sites that are going to need such functionality will likely be doing other things that require the use of a javascript library of some sort anyway, and you can do the same thing in JS with much fewer lines of code, and it will be cross-browser compatible.

Still, from a theoretical perspective, and a look at the sort of future potential this may hold, it&#039;s quite interesting.</description>
		<content:encoded><![CDATA[<p>Neat trick, and something I didn&#8217;t know about, but most sites that are going to need such functionality will likely be doing other things that require the use of a javascript library of some sort anyway, and you can do the same thing in JS with much fewer lines of code, and it will be cross-browser compatible.</p>
<p>Still, from a theoretical perspective, and a look at the sort of future potential this may hold, it&#8217;s quite interesting.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Schulz</title>
		<link>http://www.sitepoint.com/blogs/2009/01/06/a-little-known-way-to-replace-some-scripts-with-css-counters/comment-page-1/#comment-857987</link>
		<dc:creator>Dan Schulz</dc:creator>
		<pubDate>Tue, 06 Jan 2009 03:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3554#comment-857987</guid>
		<description>That is pretty nifty.</description>
		<content:encoded><![CDATA[<p>That is pretty nifty.</p>]]></content:encoded>
	</item>
</channel>
</rss>
