<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Create a Custom &#8220;:selected&#8221; Pseudo Selector in&#160;MooTools</title> <atom:link href="http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Tue, 22 May 2012 05:31:04 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Thunder Mountain</title><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected#comment-16280</link> <dc:creator>Thunder Mountain</dc:creator> <pubDate>Sun, 28 Feb 2010 01:46:35 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=723#comment-16280</guid> <description>For IE and FF support you can wrap it in a Try/CatchSelectors.Pseudo.selected = function(){
var tag;try {
tag = Element.get(this, &#039;tag&#039;);
}
catch (ex) {
tag = this.get(&#039;tag&#039;);
}return (this.selected &amp;&amp; ‘option’ == tag);
);</description> <content:encoded><![CDATA[<p>For IE and FF support you can wrap it in a Try/Catch</p><p>Selectors.Pseudo.selected = function(){<br
/> var tag;</p><p> try {<br
/> tag = Element.get(this, &#8216;tag&#8217;);<br
/> }<br
/> catch (ex) {<br
/> tag = this.get(&#8216;tag&#8217;);<br
/> }</p><p> return (this.selected &amp;&amp; ‘option’ == tag);<br
/> );</p> ]]></content:encoded> </item> <item><title>By: Luke Hoggett</title><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected#comment-10225</link> <dc:creator>Luke Hoggett</dc:creator> <pubDate>Wed, 08 Jul 2009 03:49:08 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=723#comment-10225</guid> <description>In response to Yann&#039;s comment to have this pseudo selector and other play nice with IEs you might like to have a look at &lt;a href=&quot;https://mootools.lighthouseapp.com/projects/2706/tickets/684-ie-problem-when-extending-selectorspseudo&quot; rel=&quot;nofollow&quot;&gt;this Mootools Core ticket on Lighthouse&lt;/a&gt;from Valerio&#039;s comment there the script would need to be something like (note haven&#039;t tested)Selectors.Pseudo.selected = function(){
return (this.selected &amp;&amp; &#039;option&#039; == Element.get(this, &#039;tag&#039;));};</description> <content:encoded><![CDATA[<p>In response to Yann&#8217;s comment to have this pseudo selector and other play nice with IEs you might like to have a look at <a
href="https://mootools.lighthouseapp.com/projects/2706/tickets/684-ie-problem-when-extending-selectorspseudo" rel="nofollow">this Mootools Core ticket on Lighthouse</a></p><p>from Valerio&#8217;s comment there the script would need to be something like (note haven&#8217;t tested)</p><p>Selectors.Pseudo.selected = function(){<br
/> return (this.selected &amp;&amp; &#8216;option&#8217; == Element.get(this, &#8216;tag&#8217;));</p><p>};</p> ]]></content:encoded> </item> <item><title>By: Yann</title><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected#comment-9482</link> <dc:creator>Yann</dc:creator> <pubDate>Thu, 28 May 2009 17:04:33 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=723#comment-9482</guid> <description>Do you know your script doesn&#039;t work on IE ? </description> <content:encoded><![CDATA[<p>Do you know your script doesn&#8217;t work on IE ?</p> ]]></content:encoded> </item> <item><title>By: Henrik Lindqvist</title><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected#comment-7777</link> <dc:creator>Henrik Lindqvist</dc:creator> <pubDate>Thu, 12 Feb 2009 18:47:48 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=723#comment-7777</guid> <description>If MooTools implement CSS3 for it&#039;s selector the :checked could be used.While the :checked pseudo-class is dynamic in nature, and is altered by user action, since it can also be based on the presence of the semantic HTML4 selected and checked attributes, it applies to all media.See &lt;a href=&quot;http://www.w3.org/TR/css3-selectors/#UIstates&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/css3-selectors/#UIstates&lt;/a&gt;</description> <content:encoded><![CDATA[<p>If MooTools implement CSS3 for it&#8217;s selector the :checked could be used.</p><p>While the :checked pseudo-class is dynamic in nature, and is altered by user action, since it can also be based on the presence of the semantic HTML4 selected and checked attributes, it applies to all media.</p><p>See <a
href="http://www.w3.org/TR/css3-selectors/#UIstates" rel="nofollow">http://www.w3.org/TR/css3-selectors/#UIstates</a></p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected#comment-3967</link> <dc:creator>Chris</dc:creator> <pubDate>Thu, 27 Nov 2008 06:14:37 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=723#comment-3967</guid> <description>Ha, nice script, in my current style of programming I don&#039;t use it, but defiantly will later on!Sorry Grammar, couldn&#039;t resist :)</description> <content:encoded><![CDATA[<p>Ha, nice script, in my current style of programming I don&#8217;t use it, but defiantly will later on!</p><p>Sorry Grammar, couldn&#8217;t resist :)</p> ]]></content:encoded> </item> <item><title>By: httpwebwitch</title><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected#comment-3833</link> <dc:creator>httpwebwitch</dc:creator> <pubDate>Tue, 18 Nov 2008 14:55:09 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=723#comment-3833</guid> <description>This is one of the neatest tricks I&#039;ve seen in a while. I can already think of two situations where I&#039;d use this right away! Keep up the good work Mister Walsh.Oh, and when I read that someone would &quot;defiantly&quot; use this, I just figured they were being rebellious, audacious, insubordinate ... mutinous. Using this technique with recalcitrant disobedience.&quot;Definitely&quot; is spelled right, but much less interesting.</description> <content:encoded><![CDATA[<p>This is one of the neatest tricks I&#8217;ve seen in a while. I can already think of two situations where I&#8217;d use this right away! Keep up the good work Mister Walsh.</p><p>Oh, and when I read that someone would &#8220;defiantly&#8221; use this, I just figured they were being rebellious, audacious, insubordinate &#8230; mutinous. Using this technique with recalcitrant disobedience.</p><p>&#8220;Definitely&#8221; is spelled right, but much less interesting.</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected#comment-3808</link> <dc:creator>david</dc:creator> <pubDate>Mon, 17 Nov 2008 13:41:48 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=723#comment-3808</guid> <description>&lt;p&gt;@atom:  Yep, I guess I find &quot;:selected&quot; to be shorter and within the $$() functionality.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@atom:  Yep, I guess I find &#8220;:selected&#8221; to be shorter and within the $$() functionality.</p> ]]></content:encoded> </item> <item><title>By: atom</title><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected#comment-3806</link> <dc:creator>atom</dc:creator> <pubDate>Mon, 17 Nov 2008 00:24:31 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=723#comment-3806</guid> <description>MooTools has functionality built in to get selected elements:http://mootools.net/docs/Element/Element#Element:getSelected</description> <content:encoded><![CDATA[<p>MooTools has functionality built in to get selected elements:</p><p><a
href="http://mootools.net/docs/Element/Element#Element:getSelected" rel="nofollow">http://mootools.net/docs/Element/Element#Element:getSelected</a></p> ]]></content:encoded> </item> <item><title>By: Moksha</title><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected#comment-3776</link> <dc:creator>Moksha</dc:creator> <pubDate>Tue, 11 Nov 2008 22:40:09 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=723#comment-3776</guid> <description>really nice one, it look good</description> <content:encoded><![CDATA[<p>really nice one, it look good</p> ]]></content:encoded> </item> <item><title>By: Evan</title><link>http://davidwalsh.name/create-custom-pseudo-selector-mootools-selected#comment-3770</link> <dc:creator>Evan</dc:creator> <pubDate>Tue, 11 Nov 2008 16:42:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=723#comment-3770</guid> <description>@Grammar Nazi... I noticed the stupid spelling mistake right after I posted and could not go back to edit...@david Thanks for testing out my questions for me.</description> <content:encoded><![CDATA[<p>@Grammar Nazi&#8230; I noticed the stupid spelling mistake right after I posted and could not go back to edit&#8230;</p><p>@david Thanks for testing out my questions for me.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/7 queries in 0.006 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-22 03:12:25 -->
