<?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: HTML5 classList&#160;API</title> <atom:link href="http://davidwalsh.name/classlist/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/classlist</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Wed, 08 Feb 2012 19:06:09 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Derek</title><link>http://davidwalsh.name/classlist/comment-page-1#comment-25419</link> <dc:creator>Derek</dc:creator> <pubDate>Sat, 02 Jul 2011 03:11:03 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=5009#comment-25419</guid> <description>Supported browsers includes Firefox and Google Chrome. Maybe Safari too? I am not sure about that...
Thanks for the great article!</description> <content:encoded><![CDATA[<p>Supported browsers includes Firefox and Google Chrome. Maybe Safari too? I am not sure about that&#8230;<br
/> Thanks for the great article!</p> ]]></content:encoded> </item> <item><title>By: gossi</title><link>http://davidwalsh.name/classlist/comment-page-1#comment-23421</link> <dc:creator>gossi</dc:creator> <pubDate>Fri, 08 Apr 2011 11:05:59 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=5009#comment-23421</guid> <description>That&#039;s good stuff, but hmm chaining seems not working (FF4):element.classList.add(&quot;added-class&quot;).remove(&quot;removed-class&quot;);does not work :/If there is room for improvement, I wish toggle, remove and add would be available for chaining. What you guys think?</description> <content:encoded><![CDATA[<p>That&#8217;s good stuff, but hmm chaining seems not working (FF4):</p><p>element.classList.add(&#8220;added-class&#8221;).remove(&#8220;removed-class&#8221;);</p><p>does not work :/</p><p>If there is room for improvement, I wish toggle, remove and add would be available for chaining. What you guys think?</p> ]]></content:encoded> </item> <item><title>By: Rudie</title><link>http://davidwalsh.name/classlist/comment-page-1#comment-21841</link> <dc:creator>Rudie</dc:creator> <pubDate>Fri, 17 Dec 2010 18:43:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=5009#comment-21841</guid> <description>mathias, the more &#039;accepted&#039; way to test for such properties is:&lt;code&gt;&#039;classList&#039; in document.createElement(&#039;p&#039;)&lt;/code&gt;This way also properties that are 0 or false or empty string or null are found. (In this case it doesn&#039;t matter because the classList object never evaluates to false, but still...)</description> <content:encoded><![CDATA[<p>mathias, the more &#8216;accepted&#8217; way to test for such properties is:</p><p><code>'classList' in document.createElement('p')</code></p><p>This way also properties that are 0 or false or empty string or null are found. (In this case it doesn&#8217;t matter because the classList object never evaluates to false, but still&#8230;)</p> ]]></content:encoded> </item> <item><title>By: Mathias Bynens</title><link>http://davidwalsh.name/classlist/comment-page-1#comment-18827</link> <dc:creator>Mathias Bynens</dc:creator> <pubDate>Fri, 16 Jul 2010 07:15:22 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=5009#comment-18827</guid> <description>Feature test for HTML5 classList:&lt;code&gt;if (!!document.createElement(&#039;p&#039;).classList) {
// native classList support
};&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Feature test for HTML5 classList:</p><p><code>if (!!document.createElement('p').classList) {<br
/> // native classList support<br
/> };</code></p> ]]></content:encoded> </item> <item><title>By: Richieliu</title><link>http://davidwalsh.name/classlist/comment-page-1#comment-18813</link> <dc:creator>Richieliu</dc:creator> <pubDate>Thu, 15 Jul 2010 00:59:52 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=5009#comment-18813</guid> <description>very good! Has now come true?</description> <content:encoded><![CDATA[<p>very good! Has now come true?</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/classlist/comment-page-1#comment-18774</link> <dc:creator>David Walsh</dc:creator> <pubDate>Tue, 13 Jul 2010 16:05:59 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=5009#comment-18774</guid> <description>@Jani Peltoniemi:  I do too, but MooTools could (and probably will, once more browsers implement classList) use these native methods to more quickly add/remove/toggle classes.</description> <content:encoded><![CDATA[<p>@Jani Peltoniemi:  I do too, but MooTools could (and probably will, once more browsers implement classList) use these native methods to more quickly add/remove/toggle classes.</p> ]]></content:encoded> </item> <item><title>By: Jani Peltoniemi</title><link>http://davidwalsh.name/classlist/comment-page-1#comment-18773</link> <dc:creator>Jani Peltoniemi</dc:creator> <pubDate>Tue, 13 Jul 2010 15:56:07 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=5009#comment-18773</guid> <description>It&#039;s a step forward, but I prefer Mootools&#039; Element.addClass over Element.classList.add</description> <content:encoded><![CDATA[<p>It&#8217;s a step forward, but I prefer Mootools&#8217; Element.addClass over Element.classList.add</p> ]]></content:encoded> </item> <item><title>By: Aubrey</title><link>http://davidwalsh.name/classlist/comment-page-1#comment-18772</link> <dc:creator>Aubrey</dc:creator> <pubDate>Tue, 13 Jul 2010 15:12:20 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=5009#comment-18772</guid> <description>@Alex Hall:
I wish there was one browser and all used it. That&#039;d be bliss! :)</description> <content:encoded><![CDATA[<p>@Alex Hall:<br
/> I wish there was one browser and all used it. That&#8217;d be bliss! :)</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/classlist/comment-page-1#comment-18771</link> <dc:creator>David Walsh</dc:creator> <pubDate>Tue, 13 Jul 2010 15:08:43 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=5009#comment-18771</guid> <description>@Alex Hall:  I hope that&#039;s not the case -- seems *very* easy to implement.</description> <content:encoded><![CDATA[<p>@Alex Hall:  I hope that&#8217;s not the case &#8212; seems *very* easy to implement.</p> ]]></content:encoded> </item> <item><title>By: Alex Hall</title><link>http://davidwalsh.name/classlist/comment-page-1#comment-18768</link> <dc:creator>Alex Hall</dc:creator> <pubDate>Tue, 13 Jul 2010 14:25:41 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=5009#comment-18768</guid> <description>I feel it&#039;s going to be a standard that won&#039;t be implemented for a long time to come across all vendors, but it is certainly worth the wait. And at least we have libraries to fall back on for the moment.Just wish that there was one JavaScript engine and all used it. Only in a perfect world I guess, and that would also apply for CSS(3) etc.</description> <content:encoded><![CDATA[<p>I feel it&#8217;s going to be a standard that won&#8217;t be implemented for a long time to come across all vendors, but it is certainly worth the wait. And at least we have libraries to fall back on for the moment.</p><p>Just wish that there was one JavaScript engine and all used it. Only in a perfect world I guess, and that would also apply for CSS(3) etc.</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 2/18 queries in 0.012 seconds using disk: basic
Object Caching 865/868 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-08 15:09:55 -->
