<?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: Just how useful are CSS3 selectors?</title>
	<atom:link href="http://www.css3.info/just-how-useful-are-css3-selectors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.css3.info/just-how-useful-are-css3-selectors/</link>
	<description>All you ever needed to know about CSS3</description>
	<lastBuildDate>Sat, 20 Mar 2010 15:48:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Ricardo</title>
		<link>http://www.css3.info/just-how-useful-are-css3-selectors/comment-page-1/#comment-206501</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Mon, 20 Oct 2008 13:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/just-how-useful-are-css3-selectors/#comment-206501</guid>
		<description>As Adam&#039;s question remains unanswered:

@Adam: that&#039;s an uncommon case, but it is doable in three different ways:

1. simplest:

$(&#039;h1&#039;).prev(&#039;p&#039;)

2. with a function:

jQuery.fn.getlastPs = function(){
    var lastP;
    this.siblings(&#039;p&#039;).each(function(i){
        if( $(this).next().is(&#039;h1&#039;) ) { lastP=i; return false };
    });
    return this.nextAll(&#039;p&#039;).eq(lastP);
}; 

3. using the nextUntil plugin:

$(&#039;h1:eq(0)&#039;).nextUntil(&#039;h1&#039;).filter(&#039;:last&#039;)

http://docs.jquery.com/JQuery_1.2_Roadmap#.nextUntil.28.29_.2F_.prevUntil.28.29</description>
		<content:encoded><![CDATA[<p>As Adam&#8217;s question remains unanswered:</p>
<p>@Adam: that&#8217;s an uncommon case, but it is doable in three different ways:</p>
<p>1. simplest:</p>
<p>$(&#8216;h1&#8242;).prev(&#8216;p&#8217;)</p>
<p>2. with a function:</p>
<p>jQuery.fn.getlastPs = function(){<br />
    var lastP;<br />
    this.siblings(&#8216;p&#8217;).each(function(i){<br />
        if( $(this).next().is(&#8216;h1&#8242;) ) { lastP=i; return false };<br />
    });<br />
    return this.nextAll(&#8216;p&#8217;).eq(lastP);<br />
}; </p>
<p>3. using the nextUntil plugin:</p>
<p>$(&#8216;h1:eq(0)&#8217;).nextUntil(&#8216;h1&#8242;).filter(&#8216;:last&#8217;)</p>
<p><a href="http://docs.jquery.com/JQuery_1.2_Roadmap#.nextUntil.28.29_.2F_.prevUntil.28.29" rel="nofollow">http://docs.jquery.com/JQuery_1.2_Roadmap#.nextUntil.28.29_.2F_.prevUntil.28.29</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Gresley</title>
		<link>http://www.css3.info/just-how-useful-are-css3-selectors/comment-page-1/#comment-110642</link>
		<dc:creator>Alan Gresley</dc:creator>
		<pubDate>Thu, 21 Feb 2008 17:39:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/just-how-useful-are-css3-selectors/#comment-110642</guid>
		<description>@David

In a few years time this debate will be trivial since a greater number of web designers and developers will realize these CSS2.1 and CSS3 selectors great power. Take the table element for instance. Why slap a ID or class on it when you can simply select by the words in the summary.

table[summary*=&quot;index&quot;] {}

table:not([summary*=&quot;index&quot;]) {}


The same applies with an image.

img[alt=&quot;butterfly&quot;] {}

Look at all these HTML attributes that we can use in attribute selectors.

action, alt, cite, dir, href, lang, method, name (I use id for bookmarks), rel, src, summary, title, type, value, width (for img or object).

With simple CSS, a nested unordered list for a drop down menu and at this time Opera 9.5, you can have full keyboard access (SHIFT + direction keys) with the same behavior as simple hovering. Something that javascript alone (or meshed in with CSS) has never been able to achieve.

 I love CSS.</description>
		<content:encoded><![CDATA[<p>@David</p>
<p>In a few years time this debate will be trivial since a greater number of web designers and developers will realize these CSS2.1 and CSS3 selectors great power. Take the table element for instance. Why slap a ID or class on it when you can simply select by the words in the summary.</p>
<p>table[summary*="index"] {}</p>
<p>table:not([summary*="index"]) {}</p>
<p>The same applies with an image.</p>
<p>img[alt="butterfly"] {}</p>
<p>Look at all these HTML attributes that we can use in attribute selectors.</p>
<p>action, alt, cite, dir, href, lang, method, name (I use id for bookmarks), rel, src, summary, title, type, value, width (for img or object).</p>
<p>With simple CSS, a nested unordered list for a drop down menu and at this time Opera 9.5, you can have full keyboard access (SHIFT + direction keys) with the same behavior as simple hovering. Something that javascript alone (or meshed in with CSS) has never been able to achieve.</p>
<p> I love CSS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Storey</title>
		<link>http://www.css3.info/just-how-useful-are-css3-selectors/comment-page-1/#comment-110617</link>
		<dc:creator>David Storey</dc:creator>
		<pubDate>Thu, 21 Feb 2008 16:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/just-how-useful-are-css3-selectors/#comment-110617</guid>
		<description>I don&#039;t think I can agree with John here.  Also note that Mozilla (who John works for) hasn&#039;t implemented all of the selectors, unlike Opera, Safari and Konqueror.  I don&#039;t see an emediate use for many of the selectors, but the nth-child, nth-of-type etc are very useful and cut down on the use of javascript, or classes quite a bit.  There are quite a few examples on this site that use the new selectors.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think I can agree with John here.  Also note that Mozilla (who John works for) hasn&#8217;t implemented all of the selectors, unlike Opera, Safari and Konqueror.  I don&#8217;t see an emediate use for many of the selectors, but the nth-child, nth-of-type etc are very useful and cut down on the use of javascript, or classes quite a bit.  There are quite a few examples on this site that use the new selectors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Thomassen</title>
		<link>http://www.css3.info/just-how-useful-are-css3-selectors/comment-page-1/#comment-110197</link>
		<dc:creator>Thomas Thomassen</dc:creator>
		<pubDate>Wed, 20 Feb 2008 22:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/just-how-useful-are-css3-selectors/#comment-110197</guid>
		<description>I&#039;m guessing here, but: my bet is that most people using the lib hasn&#039;t really looked into the new CSS3 selectors. They probably stick with the simple CSS1 and CSS2 selectors because that&#039;s what they know.

I&#039;m wondering what the question here is. Is it whether CSS3 selectors are useful for the jQuery library? Or whether CSS3 selectors are useful period?</description>
		<content:encoded><![CDATA[<p>I&#8217;m guessing here, but: my bet is that most people using the lib hasn&#8217;t really looked into the new CSS3 selectors. They probably stick with the simple CSS1 and CSS2 selectors because that&#8217;s what they know.</p>
<p>I&#8217;m wondering what the question here is. Is it whether CSS3 selectors are useful for the jQuery library? Or whether CSS3 selectors are useful period?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.css3.info/just-how-useful-are-css3-selectors/comment-page-1/#comment-109836</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 20 Feb 2008 08:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/just-how-useful-are-css3-selectors/#comment-109836</guid>
		<description>It seems quite sensible to me to remove these things from a javascript library if they&#039;re not being used. That doesn&#039;t mean we have to lose them from css itself.</description>
		<content:encoded><![CDATA[<p>It seems quite sensible to me to remove these things from a javascript library if they&#8217;re not being used. That doesn&#8217;t mean we have to lose them from css itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iron_Storm</title>
		<link>http://www.css3.info/just-how-useful-are-css3-selectors/comment-page-1/#comment-109529</link>
		<dc:creator>Iron_Storm</dc:creator>
		<pubDate>Tue, 19 Feb 2008 23:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/just-how-useful-are-css3-selectors/#comment-109529</guid>
		<description>I also agree with David.</description>
		<content:encoded><![CDATA[<p>I also agree with David.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.css3.info/just-how-useful-are-css3-selectors/comment-page-1/#comment-109461</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 19 Feb 2008 20:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/just-how-useful-are-css3-selectors/#comment-109461</guid>
		<description>So CSS3 selectors are obviously difficult to implement.

Another argument to provide xpath in css instead of a new language. It&#039;s already implemented in most of browsers.</description>
		<content:encoded><![CDATA[<p>So CSS3 selectors are obviously difficult to implement.</p>
<p>Another argument to provide xpath in css instead of a new language. It&#8217;s already implemented in most of browsers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://www.css3.info/just-how-useful-are-css3-selectors/comment-page-1/#comment-109352</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Tue, 19 Feb 2008 15:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/just-how-useful-are-css3-selectors/#comment-109352</guid>
		<description>Adam, you can&#039;t do this in CSS. Being only able to talk to descendent and following siblings is designed into the language as a performance measure.</description>
		<content:encoded><![CDATA[<p>Adam, you can&#8217;t do this in CSS. Being only able to talk to descendent and following siblings is designed into the language as a performance measure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cloudream</title>
		<link>http://www.css3.info/just-how-useful-are-css3-selectors/comment-page-1/#comment-109348</link>
		<dc:creator>Cloudream</dc:creator>
		<pubDate>Tue, 19 Feb 2008 15:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/just-how-useful-are-css3-selectors/#comment-109348</guid>
		<description>@Andy: no, there is no plugin to support ~= selector, because of hard to add this.</description>
		<content:encoded><![CDATA[<p>@Andy: no, there is no plugin to support ~= selector, because of hard to add this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neal G</title>
		<link>http://www.css3.info/just-how-useful-are-css3-selectors/comment-page-1/#comment-109336</link>
		<dc:creator>Neal G</dc:creator>
		<pubDate>Tue, 19 Feb 2008 15:24:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/just-how-useful-are-css3-selectors/#comment-109336</guid>
		<description>You are correct. The fact that people don&#039;t use them is because they haven&#039;t had enough exposure to them yet. Since IE has had trouble supporting the advanced selectors in the past, people have stayed away from these selectors.

I like to use css3 selectors like so:
/* Style external links */
a[href^=&quot;http&quot;]

/* Style pdf links */
a[href$=&quot;.pdf&quot;]

It appears that the library still supports these but regardless, a lot more can be done that what we realize right now.</description>
		<content:encoded><![CDATA[<p>You are correct. The fact that people don&#8217;t use them is because they haven&#8217;t had enough exposure to them yet. Since IE has had trouble supporting the advanced selectors in the past, people have stayed away from these selectors.</p>
<p>I like to use css3 selectors like so:<br />
/* Style external links */<br />
a[href^="http"]</p>
<p>/* Style pdf links */<br />
a[href$=".pdf"]</p>
<p>It appears that the library still supports these but regardless, a lot more can be done that what we realize right now.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!--
This site's performance optimized by W3 Total Cache:

W3 Total Cache improves the user experience of your blog by caching
frequent operations, reducing the weight of various files and providing
transparent content delivery network integration.

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/


Served from: css3.info @ 2010-03-21 06:19:20 -->