<?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>everything flows &#187; html</title>
	<atom:link href="http://www.lukerodgers.ca/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lukerodgers.ca</link>
	<description>a celestial emporium of benevolent knowledge</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:12:10 +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>Facebook uses browser-specific body classes</title>
		<link>http://www.lukerodgers.ca/2009/08/facebook-uses-browser-specific-body-classes/</link>
		<comments>http://www.lukerodgers.ca/2009/08/facebook-uses-browser-specific-body-classes/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 04:00:53 +0000</pubDate>
		<dc:creator>Luke Rodgers</dc:creator>
				<category><![CDATA[web and tech]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.lukerodgers.ca/?p=607</guid>
		<description><![CDATA[Use browser-specific body classes to avoid extra stylesheets or invalid CSS]]></description>
			<content:encoded><![CDATA[<p>Having recently worked on a website for which page load and performance was really important, I&#8217;ve found myself viewing the source code for more and more sites. Taking a look at Facebook recently revealed that they use browser-specific classes on the body element, so that if you&#8217;re browsing with Safari 4, you&#8217;ll see something like:<span id="more-607"></span></p>
<p><code class="block">&lt;body class="home safari4 Locale_en_GB chat_body"&gt;</code></p>
<p>If you&#8217;re already browser sniffing, this might be a better idea for applying targeted <abbr title="Cascading Style Sheets">CSS</abbr> rules than including an extra stylesheet with conditional comments (which means an extra <abbr title="HyperText Transfer Protocol">HTTP</abbr> request), or using the underscore hack (<abbr title="Internet Explorer 6">IE6</abbr>), or star hack (IE7) which cause invalid <abbr title="Cascading Style Sheets">CSS</abbr>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lukerodgers.ca/2009/08/facebook-uses-browser-specific-body-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
