<?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: getAttribute(&#8217;style&#8217;), setAttribute(&#8217;style&#8217;) &amp; IE Don&#8217;t Mix</title>
	<atom:link href="http://www.patmullin.com/weblog/2006/04/06/getattributestyle-setattributestyle-ie-dont-mix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.patmullin.com/weblog/2006/04/06/getattributestyle-setattributestyle-ie-dont-mix/</link>
	<description></description>
	<lastBuildDate>Tue, 26 Jan 2010 22:53:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: sam</title>
		<link>http://www.patmullin.com/weblog/2006/04/06/getattributestyle-setattributestyle-ie-dont-mix/comment-page-1/#comment-1701</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Tue, 23 Dec 2008 19:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.patmullin.com/weblog/?p=48#comment-1701</guid>
		<description>Thanks.  Was worried that there was no easy work around.</description>
		<content:encoded><![CDATA[<p>Thanks.  Was worried that there was no easy work around.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler Waters</title>
		<link>http://www.patmullin.com/weblog/2006/04/06/getattributestyle-setattributestyle-ie-dont-mix/comment-page-1/#comment-975</link>
		<dc:creator>Tyler Waters</dc:creator>
		<pubDate>Tue, 10 Apr 2007 20:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.patmullin.com/weblog/?p=48#comment-975</guid>
		<description>IE can suck my nuts.  I ran into this bug (amung like 3 or 4 other non-compliancy issues) while writing a cross-browser XML/XSLT processor. 

You may want to try this:
  object.style.cssText = styleText;

where 
 - object = document.getElementById(â€™[id_of_element]&#039;) 
 - styleText = &quot;height:250px;&quot;

Works in both IE, Mozilla &amp; Opera
 -- I&#039;ve been unable to test other browsers.  

I have a sneaking suspicion that cssText is one of those evil proprietary properties like innerHTML that spreads like terminal cancer accross much of the web... As such, every time I want to set the style of a dom element, I call a function:

function setStyle( object, styleText ) {
	object.style.cssText += styleText;
}

which can eventually be rewritten in the bright &amp; brilliant future of FULL W3C compliancy for ALL browsers (dreaming), or modified to include further cross-browser support.</description>
		<content:encoded><![CDATA[<p>IE can suck my nuts.  I ran into this bug (amung like 3 or 4 other non-compliancy issues) while writing a cross-browser XML/XSLT processor. </p>
<p>You may want to try this:<br />
  object.style.cssText = styleText;</p>
<p>where<br />
 &#8211; object = document.getElementById(â€™[id_of_element]&#8216;)<br />
 &#8211; styleText = &#8220;height:250px;&#8221;</p>
<p>Works in both IE, Mozilla &amp; Opera<br />
 &#8212; I&#8217;ve been unable to test other browsers.  </p>
<p>I have a sneaking suspicion that cssText is one of those evil proprietary properties like innerHTML that spreads like terminal cancer accross much of the web&#8230; As such, every time I want to set the style of a dom element, I call a function:</p>
<p>function setStyle( object, styleText ) {<br />
	object.style.cssText += styleText;<br />
}</p>
<p>which can eventually be rewritten in the bright &amp; brilliant future of FULL W3C compliancy for ALL browsers (dreaming), or modified to include further cross-browser support.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

