<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Karoshi Ethos &#187; Blogger</title>
	<atom:link href="http://karoshiethos.com/tag/blogger/feed/" rel="self" type="application/rss+xml" />
	<link>http://karoshiethos.com</link>
	<description>Navigating the treacherous waters of interactive technology</description>
	<lastBuildDate>Wed, 09 Jun 2010 19:33:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Blogger Feed Displayed in Flash Crashing FireFox 3, With Fix</title>
		<link>http://karoshiethos.com/2009/07/25/blogger-feed-displayed-in-flash-crashing-firefox-3-with-fix/</link>
		<comments>http://karoshiethos.com/2009/07/25/blogger-feed-displayed-in-flash-crashing-firefox-3-with-fix/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 03:47:07 +0000</pubDate>
		<dc:creator>Rob Ruchte</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Things that are broken]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://karoshiethos.com/?p=420</guid>
		<description><![CDATA[Recently, Blogger began appending a tracking gif to the content of each entry in their Atom feeds. The URL used in the image src uses https, most likely to avoid warnings when it's rendered in a https context. For some reason, when rendering the feed content containing the tracking image, the Flash player can crash, [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, Blogger began appending a tracking gif to the content of each entry in their Atom feeds. The URL used in the image src uses https, most likely to avoid warnings when it's rendered in a https context. For some reason, when rendering the feed content containing the tracking image, the Flash player can crash, taking the browser with it on certain platform/browser combinations. We found the problem in FireFox 3.0 on OSX, but only on PPC Macs. Go figure.</p>
<p>In our case, we are proxying the Atom feed through a PHP script so we can display the feed contents to user agents without the Flash player. This made it fairly easy to  iterate through the entries, and with a simple bit of regex, strip out the offending markup from the contents.</p>
<p>Blogger is wrapping the image tag in a div with a very specific CSS class, which makes our job easy:</p>
<div class="code"><code><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 119, 0);">foreach(</span><span style="color: rgb(0, 0, 187);">$feed</span><span style="color: rgb(0, 119, 0);">-&gt;</span><span style="color: rgb(0, 0, 187);">entries&nbsp;</span><span style="color: rgb(0, 119, 0);">as&nbsp;</span><span style="color: rgb(0, 0, 187);">$currEntry</span><span style="color: rgb(0, 119, 0);">)<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 187);">$currEntry</span><span style="color: rgb(0, 119, 0);">-&gt;</span><span style="color: rgb(0, 0, 187);">content&nbsp;</span><span style="color: rgb(0, 119, 0);">=&nbsp;</span><span style="color: rgb(0, 0, 187);">ereg_replace</span><span style="color: rgb(0, 119, 0);">(</span><span style="color: rgb(221, 0, 0);">'&lt;div&nbsp;class=\&quot;blogger-post-footer\&quot;&gt;.*&lt;/div&gt;'</span><span style="color: rgb(0, 119, 0);">,&nbsp;</span><span style="color: rgb(221, 0, 0);">''</span><span style="color: rgb(0, 119, 0);">,&nbsp;</span><span style="color: rgb(0, 0, 187);">$currEntry</span><span style="color: rgb(0, 119, 0);">-&gt;</span><span style="color: rgb(0, 0, 187);">content</span><span style="color: rgb(0, 119, 0);">);<br />
}</span></span></code></div>
<p>Depending on what you're using to parse the feed, you may or may not need to be concerned about decoding and encoding html entities during this process.</p>
]]></content:encoded>
			<wfw:commentRss>http://karoshiethos.com/2009/07/25/blogger-feed-displayed-in-flash-crashing-firefox-3-with-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
