<?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: When Browser Detection Isn&#8217;t a Bad Thing</title>
	<atom:link href="http://arapehlivanian.com/when-browser-detection-isnt-a-bad-thing/feed/" rel="self" type="application/rss+xml" />
	<link>http://arapehlivanian.com/when-browser-detection-isnt-a-bad-thing/</link>
	<description>Web Standards, Web Culture, Web Everything.™</description>
	<lastBuildDate>Sun, 25 Sep 2011 04:23:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ara Pehlivanian</title>
		<link>http://arapehlivanian.com/when-browser-detection-isnt-a-bad-thing/comment-page-1/#comment-39877</link>
		<dc:creator>Ara Pehlivanian</dc:creator>
		<pubDate>Tue, 15 Apr 2008 11:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/?p=372#comment-39877</guid>
		<description>@Stanley: Good question, in the case of Safari, and the example that I based my post on, I just overrode the behaviour outright. So no matter the browser, I based myself on my own generated index value instead of cellIndex. Otherwise, you&#039;re right, a simple if/else workaround for a target browser is sometimes the best we can do.</description>
		<content:encoded><![CDATA[<p>@Stanley: Good question, in the case of Safari, and the example that I based my post on, I just overrode the behaviour outright. So no matter the browser, I based myself on my own generated index value instead of cellIndex. Otherwise, you&#8217;re right, a simple if/else workaround for a target browser is sometimes the best we can do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stanley</title>
		<link>http://arapehlivanian.com/when-browser-detection-isnt-a-bad-thing/comment-page-1/#comment-39638</link>
		<dc:creator>Stanley</dc:creator>
		<pubDate>Thu, 10 Apr 2008 07:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/?p=372#comment-39638</guid>
		<description>I agree with your synopsis that browser detection is evil, but what do you do with your example in safari?

if you get &quot;knee deep&quot; in code then determine that in safari it can&#039;t handle the method, how do you bail out nicely?


I prefer to do browser detection, including versioning, and apply tweaks as possible for each browser, AND thus be able to If / Else wrap my other method calls to avoid known bugs.

e.g.
if(isSafari &amp;&amp; isSafari3){
  //workaround bug X
} else {
  //process normally
  
}

This allows me to handle new versions of Safari, presuming that things are fixed.  If they don&#039;t get fixed, I just tweak my JS to handle it.

I got into this habit after reading Web Bug Track, which nicely highlights the most painful JS bugs in each browser.

e.g.
http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.html

Which, like your example works around IE and OPERA bugs with getElementById.

Thanks, stanley</description>
		<content:encoded><![CDATA[<p>I agree with your synopsis that browser detection is evil, but what do you do with your example in safari?</p>
<p>if you get &#8220;knee deep&#8221; in code then determine that in safari it can&#8217;t handle the method, how do you bail out nicely?</p>
<p>I prefer to do browser detection, including versioning, and apply tweaks as possible for each browser, AND thus be able to If / Else wrap my other method calls to avoid known bugs.</p>
<p>e.g.<br />
if(isSafari &amp;&amp; isSafari3){<br />
  //workaround bug X<br />
} else {<br />
  //process normally</p>
<p>}</p>
<p>This allows me to handle new versions of Safari, presuming that things are fixed.  If they don&#8217;t get fixed, I just tweak my JS to handle it.</p>
<p>I got into this habit after reading Web Bug Track, which nicely highlights the most painful JS bugs in each browser.</p>
<p>e.g.<br />
<a href="http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.html" rel="nofollow">http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.html</a></p>
<p>Which, like your example works around IE and OPERA bugs with getElementById.</p>
<p>Thanks, stanley</p>
]]></content:encoded>
	</item>
</channel>
</rss>

