<?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>Softcore software development &#187; chrome</title>
	<atom:link href="http://tea.cesaroliveira.net/archives/tag/chrome/feed" rel="self" type="application/rss+xml" />
	<link>http://tea.cesaroliveira.net</link>
	<description>It&#039;s all about the cycles</description>
	<lastBuildDate>Tue, 24 Jan 2012 04:31:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>deprecate this</title>
		<link>http://tea.cesaroliveira.net/archives/51</link>
		<comments>http://tea.cesaroliveira.net/archives/51#comments</comments>
		<pubDate>Sat, 03 Jan 2009 08:06:39 +0000</pubDate>
		<dc:creator>Cesar</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[konqueror]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://www.cesaroliveira.net/?p=50</guid>
		<description><![CDATA[What I thought was a bug in the jQuery.browser, turns out to be a bug, but on a function that was deprecated (according to their nightly source) and therefore not likely to be fixed. The bug occurred when calling jQuery.browser.safari in Google Chrome. It would return true instead of false because the user agent had [...]]]></description>
			<content:encoded><![CDATA[<p>What I thought was a bug in the <a href="http://docs.jquery.com/Utilities/jQuery.browser" onclick="pageTracker._trackPageview('/outgoing/docs.jquery.com/Utilities/jQuery.browser?referer=');">jQuery.browser</a>, turns out to be a bug, but on a function that was deprecated (according to their nightly source) and therefore not likely to be fixed. The bug occurred when calling jQuery.browser.safari in Google Chrome. It would return <em>true</em> instead of false because the user agent had the word webkit in it (yes. That&#8217;s the browser sniffing method they use). Some simple methods work better than <a href="http://www.ardisson.org/afkar/2009/01/01/and-the-winner-is%E2%80%A6/" onclick="pageTracker._trackPageview('/outgoing/www.ardisson.org/afkar/2009/01/01/and-the-winner-is_E2_80_A6/?referer=');">others</a>.</p>
<p><span style="text-decoration:line-through">I need browser detection so I can point users to helpful places when they have javascript disabled. Turns out my site is really broken when js is disabled. And when css is disabled as well, but that&#8217;s another problem.</span> I made a quick and dirty <a href="http://www.cesaroliveira.net/files/2009-01-03/jquery-browser-detection.js" onclick="pageTracker._trackPageview('/outgoing/www.cesaroliveira.net/files/2009-01-03/jquery-browser-detection.js?referer=');">jQuery plugin</a> that includes konqueror, Google Chrome, and fixes the bug mentioned above.</p>
<p>Using it is as simple as :<br />
<code>$.browser.konqueror<br />
$.browser.chrome</code></p>
<p>But don&#8217;t take my word for it. Try out the <a href="http://www.cesaroliveira.net/files/2009-01-03/" onclick="pageTracker._trackPageview('/outgoing/www.cesaroliveira.net/files/2009-01-03/?referer=');">demo</a> and view the source! It&#8217;s under the <a href="http://www.opensource.org/licenses/mit-license.php" onclick="pageTracker._trackPageview('/outgoing/www.opensource.org/licenses/mit-license.php?referer=');">MIT license</a>. It&#8217;s not included in the source because it is just too much overhead.</p>
]]></content:encoded>
			<wfw:commentRss>http://tea.cesaroliveira.net/archives/51/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

