<?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: The star hack in IE8 and dynamic stylesheets</title>
	<atom:link href="http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/</link>
	<description>Stoyan&#039;s blog</description>
	<lastBuildDate>Thu, 23 May 2013 12:26:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: damage hack</title>
		<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/#comment-81600</link>
		<dc:creator>damage hack</dc:creator>
		<pubDate>Wed, 08 Feb 2012 21:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=764#comment-81600</guid>
		<description><![CDATA[&lt;strong&gt;damage hack...&lt;/strong&gt;

[...]The star hack in IE8 and dynamic stylesheets / Stoyan&#039;s phpied.com[...]...]]></description>
		<content:encoded><![CDATA[<p><strong>damage hack&#8230;</strong></p>
<p>[...]The star hack in IE8 and dynamic stylesheets / Stoyan&#8217;s phpied.com[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Autóalkatrész Miskolc</title>
		<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/#comment-79552</link>
		<dc:creator>Autóalkatrész Miskolc</dc:creator>
		<pubDate>Sat, 12 Nov 2011 00:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=764#comment-79552</guid>
		<description><![CDATA[&lt;strong&gt;Great website…...&lt;/strong&gt;

[...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]...]]></description>
		<content:encoded><![CDATA[<p><strong>Great website…&#8230;</strong></p>
<p>[...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: butHa</title>
		<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/#comment-76462</link>
		<dc:creator>butHa</dc:creator>
		<pubDate>Tue, 15 Mar 2011 15:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=764#comment-76462</guid>
		<description><![CDATA[for me works this in ie8:

.test {color:#fc3\9;}]]></description>
		<content:encoded><![CDATA[<p>for me works this in ie8:</p>
<p>.test {color:#fc3\9;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luv&#38;Hate</title>
		<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/#comment-75549</link>
		<dc:creator>Luv&#38;Hate</dc:creator>
		<pubDate>Mon, 10 Jan 2011 20:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=764#comment-75549</guid>
		<description><![CDATA[I jumped and whooped! Finally! My website is working in IE6 AND IE9 using the &quot;parent&gt;child&quot; hack then I view it in IE8, wtf!!! M$oft&#039;s making web designing a living hell.]]></description>
		<content:encoded><![CDATA[<p>I jumped and whooped! Finally! My website is working in IE6 AND IE9 using the &#8220;parent&gt;child&#8221; hack then I view it in IE8, wtf!!! M$oft&#8217;s making web designing a living hell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: puttingunivers</title>
		<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/#comment-75502</link>
		<dc:creator>puttingunivers</dc:creator>
		<pubDate>Sat, 08 Jan 2011 06:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=764#comment-75502</guid>
		<description><![CDATA[&lt;a href=&quot;http://www.puttinguniverse.com&quot; title=&quot; reading green&quot; rel=&quot;nofollow&quot;&gt; reading green&lt;/a&gt; Im putting my mark here. Get it? Putting?
Can I have a laugh now? No?]]></description>
		<content:encoded><![CDATA[<p><a href="http://www.puttinguniverse.com" title=" reading green" rel="nofollow"> reading green</a> Im putting my mark here. Get it? Putting?<br />
Can I have a laugh now? No?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nagaraju</title>
		<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/#comment-73490</link>
		<dc:creator>Nagaraju</dc:creator>
		<pubDate>Fri, 25 Jun 2010 05:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=764#comment-73490</guid>
		<description><![CDATA[IE8 Hack css


       .test { color: #fc3/ }
]]></description>
		<content:encoded><![CDATA[<p>IE8 Hack css</p>
<p>       .test { color: #fc3/ }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nagaraju</title>
		<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/#comment-73486</link>
		<dc:creator>Nagaraju</dc:creator>
		<pubDate>Thu, 24 Jun 2010 13:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=764#comment-73486</guid>
		<description><![CDATA[this is perfect hack for IE8

.test { color: black/; }

when I type code is missing you can write like this

(backslash zero slash)

/]]></description>
		<content:encoded><![CDATA[<p>this is perfect hack for IE8</p>
<p>.test { color: black/; }</p>
<p>when I type code is missing you can write like this</p>
<p>(backslash zero slash)</p>
<p>/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nagaraju</title>
		<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/#comment-73485</link>
		<dc:creator>Nagaraju</dc:creator>
		<pubDate>Thu, 24 Jun 2010 13:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=764#comment-73485</guid>
		<description><![CDATA[this is perfect hack for IE8

.test { color: black/; }]]></description>
		<content:encoded><![CDATA[<p>this is perfect hack for IE8</p>
<p>.test { color: black/; }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/#comment-72253</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Tue, 02 Feb 2010 22:43:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=764#comment-72253</guid>
		<description><![CDATA[I ran into a similar problem recently and found that there is actually a simple workaround for this. If you append the style element to the document before setting the cssText property, IE8 will interpret it in normal IE8 mode and the example will work fine.

This is mentioned as a usage caveat of the cssText property on MSDN: http://msdn.microsoft.com/en-us/library/ms533698%28VS.85%29.aspx

It was also mentioned in the comments on this blog here:
http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-70592

The solution I ended up using is almost the exactly same. Note that you don&#039;t even have to set the type attribute if you append the style element to the document first:

var style = document.createElement(&#039;style&#039;),
    styleRules = &#039;.box {background: red; *background: blue; _background: green;}&#039;;

document.getElementsByTagName(&#039;head&#039;)[0].appendChild(style);
if (style.styleSheet) {
    style.styleSheet.cssText = styleRules;
} else {
    style.appendChild(document.createTextNode(styleRules));
}]]></description>
		<content:encoded><![CDATA[<p>I ran into a similar problem recently and found that there is actually a simple workaround for this. If you append the style element to the document before setting the cssText property, IE8 will interpret it in normal IE8 mode and the example will work fine.</p>
<p>This is mentioned as a usage caveat of the cssText property on MSDN: <a href="http://msdn.microsoft.com/en-us/library/ms533698%28VS.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms533698%28VS.85%29.aspx</a></p>
<p>It was also mentioned in the comments on this blog here:<br />
<a href="http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-70592" rel="nofollow">http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-70592</a></p>
<p>The solution I ended up using is almost the exactly same. Note that you don&#8217;t even have to set the type attribute if you append the style element to the document first:</p>
<p>var style = document.createElement(&#8216;style&#8217;),<br />
    styleRules = &#8216;.box {background: red; *background: blue; _background: green;}&#8217;;</p>
<p>document.getElementsByTagName(&#8216;head&#8217;)[0].appendChild(style);<br />
if (style.styleSheet) {<br />
    style.styleSheet.cssText = styleRules;<br />
} else {<br />
    style.appendChild(document.createTextNode(styleRules));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bee</title>
		<link>http://www.phpied.com/the-star-hack-in-ie8-and-dynamic-stylesheets/#comment-71856</link>
		<dc:creator>bee</dc:creator>
		<pubDate>Wed, 02 Dec 2009 11:27:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=764#comment-71856</guid>
		<description><![CDATA[update: I found a js-marquee that works! http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm (well, except IE6 where it only works for the first cycle then drops below the display area); The problem with the flyout menu in IE7/8 appears to be caused by using STRICT - using Transitional creates other prblems but we&#039;re working on it ...]]></description>
		<content:encoded><![CDATA[<p>update: I found a js-marquee that works! <a href="http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm" rel="nofollow">http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm</a> (well, except IE6 where it only works for the first cycle then drops below the display area); The problem with the flyout menu in IE7/8 appears to be caused by using STRICT &#8211; using Transitional creates other prblems but we&#8217;re working on it &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
