<?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 Style All Their Own</title>
	<atom:link href="http://www.yuiblog.com/blog/index.php/2008/06/12/a-style-all-their-own/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yuiblog.com/blog/2008/06/12/a-style-all-their-own/</link>
	<description>The official blog of the YUI Project.</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:46:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Ben Swieringa</title>
		<link>http://www.yuiblog.com/blog/2008/06/12/a-style-all-their-own/comment-page-1/#comment-403358</link>
		<dc:creator>Ben Swieringa</dc:creator>
		<pubDate>Mon, 23 Jun 2008 15:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/06/12/a-style-all-their-own/#comment-403358</guid>
		<description>Tip: Change multiple attributes in multiple elements at once.

multipleSpans=YAHOO.util.Dom.getElementsByClassName(&#039;multiple&#039;, &#039;span&#039;);
YAHOO.util.Dom.setStyle(multipleSpans, &#039;cssText&#039;,&#039;text-decoration:underline;cursor:pointer;&#039;);</description>
		<content:encoded><![CDATA[<p>Tip: Change multiple attributes in multiple elements at once.</p>
<p>multipleSpans=YAHOO.util.Dom.getElementsByClassName(&#8216;multiple&#8217;, &#8216;span&#8217;);<br />
YAHOO.util.Dom.setStyle(multipleSpans, &#8216;cssText&#8217;,'text-decoration:underline;cursor:pointer;&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://www.yuiblog.com/blog/2008/06/12/a-style-all-their-own/comment-page-1/#comment-395506</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Fri, 13 Jun 2008 19:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/06/12/a-style-all-their-own/#comment-395506</guid>
		<description>@Matt,

I didn&#039;t benchmark assigning cssText vs setting the className.  Generally speaking, setting element style directly is only preferable when you need to assign dynamic values.  Besides being better practice, it is most likely faster to update className because the browser does not need to do the extra step of parsing the cssText and updating the properties in the element&#039;s style collection before the repaint.

@Marius-Remus
I might have misread the build number.  I&#039;ve since installed 9.5 GA and verified there were no modifications to the style collection members.  Incidentally, Dragonfly shows &#039;audio-level&#039;, &#039;rest&#039;, &#039;rest-after&#039;, and &#039;rest-before&#039;, but they apparently don&#039;t have representation in the style collection as audioLevel (etc).</description>
		<content:encoded><![CDATA[<p>@Matt,</p>
<p>I didn&#8217;t benchmark assigning cssText vs setting the className.  Generally speaking, setting element style directly is only preferable when you need to assign dynamic values.  Besides being better practice, it is most likely faster to update className because the browser does not need to do the extra step of parsing the cssText and updating the properties in the element&#8217;s style collection before the repaint.</p>
<p>@Marius-Remus<br />
I might have misread the build number.  I&#8217;ve since installed 9.5 GA and verified there were no modifications to the style collection members.  Incidentally, Dragonfly shows &#8216;audio-level&#8217;, &#8216;rest&#8217;, &#8216;rest-after&#8217;, and &#8216;rest-before&#8217;, but they apparently don&#8217;t have representation in the style collection as audioLevel (etc).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A Style All Their Own &#171; outaTiME</title>
		<link>http://www.yuiblog.com/blog/2008/06/12/a-style-all-their-own/comment-page-1/#comment-395399</link>
		<dc:creator>A Style All Their Own &#171; outaTiME</dc:creator>
		<pubDate>Fri, 13 Jun 2008 15:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/06/12/a-style-all-their-own/#comment-395399</guid>
		<description>[...] Click through to see the full table of CSS properties. [...]</description>
		<content:encoded><![CDATA[<p>[...] Click through to see the full table of CSS properties. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius-Remus Mate</title>
		<link>http://www.yuiblog.com/blog/2008/06/12/a-style-all-their-own/comment-page-1/#comment-395355</link>
		<dc:creator>Marius-Remus Mate</dc:creator>
		<pubDate>Fri, 13 Jun 2008 13:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/06/12/a-style-all-their-own/#comment-395355</guid>
		<description>Considering that Opera 9.5 was released yesterday, I don&#039;t see why you would use a really old beta version of the browser. Current build number is 10063, while the version you tested is build number 4808.</description>
		<content:encoded><![CDATA[<p>Considering that Opera 9.5 was released yesterday, I don&#8217;t see why you would use a really old beta version of the browser. Current build number is 10063, while the version you tested is build number 4808.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Robinson</title>
		<link>http://www.yuiblog.com/blog/2008/06/12/a-style-all-their-own/comment-page-1/#comment-395289</link>
		<dc:creator>Matt Robinson</dc:creator>
		<pubDate>Fri, 13 Jun 2008 09:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/06/12/a-style-all-their-own/#comment-395289</guid>
		<description>Very useful, thanks. Any idea whether changing &lt;code&gt;cssText&lt;/code&gt; is faster than changing the class?</description>
		<content:encoded><![CDATA[<p>Very useful, thanks. Any idea whether changing <code>cssText</code> is faster than changing the class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 5307853</title>
		<link>http://www.yuiblog.com/blog/2008/06/12/a-style-all-their-own/comment-page-1/#comment-395142</link>
		<dc:creator>5307853</dc:creator>
		<pubDate>Fri, 13 Jun 2008 01:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/06/12/a-style-all-their-own/#comment-395142</guid>
		<description>This is great.  Would you consider updating this chart to repeat the headings (browsers) every 30 or 50 rows or so?</description>
		<content:encoded><![CDATA[<p>This is great.  Would you consider updating this chart to repeat the headings (browsers) every 30 or 50 rows or so?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darek Adamkiewicz</title>
		<link>http://www.yuiblog.com/blog/2008/06/12/a-style-all-their-own/comment-page-1/#comment-395047</link>
		<dc:creator>Darek Adamkiewicz</dc:creator>
		<pubDate>Thu, 12 Jun 2008 20:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/06/12/a-style-all-their-own/#comment-395047</guid>
		<description>In FF2+ you can&#039;t get css &#039;background-position&#039; value in JavaScript.
Of course if you set it in JavaScript you&#039;ll get it.

And in FF2+ negative &#039;z-index&#039; value of (&#039;absolute&#039;, &#039;relative&#039;, &#039;fixed&#039;) element makes that element not visible. 

Both should be fixed in FF3

Just my 2 cents

Regards
Darek</description>
		<content:encoded><![CDATA[<p>In FF2+ you can&#8217;t get css &#8216;background-position&#8217; value in JavaScript.<br />
Of course if you set it in JavaScript you&#8217;ll get it.</p>
<p>And in FF2+ negative &#8216;z-index&#8217; value of (&#8216;absolute&#8217;, &#8216;relative&#8217;, &#8216;fixed&#8217;) element makes that element not visible. </p>
<p>Both should be fixed in FF3</p>
<p>Just my 2 cents</p>
<p>Regards<br />
Darek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Griego</title>
		<link>http://www.yuiblog.com/blog/2008/06/12/a-style-all-their-own/comment-page-1/#comment-395041</link>
		<dc:creator>Chris Griego</dc:creator>
		<pubDate>Thu, 12 Jun 2008 20:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/06/12/a-style-all-their-own/#comment-395041</guid>
		<description>I&#039;ve been known to use a technique like this to detect CSS support from JavaScript in rare situations.

&lt;code&gt;if (!YAHOO.lang.isUndefined(n.style.maxWidth))&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been known to use a technique like this to detect CSS support from JavaScript in rare situations.</p>
<p><code>if (!YAHOO.lang.isUndefined(n.style.maxWidth))</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

