<?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: Detecting IE in 12 bytes</title>
	<atom:link href="http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/</link>
	<description>Javascript blog with messed up syntax inside</description>
	<lastBuildDate>Thu, 26 Jan 2012 01:38:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Aleko</title>
		<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/#comment-1678</link>
		<dc:creator>Aleko</dc:creator>
		<pubDate>Fri, 08 Jan 2010 03:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=335#comment-1678</guid>
		<description>better decision from me:

!-[1,]

returns true in IE and false in all others

or even

-[1,]

returns NaN in IE and -1 in all other browsers</description>
		<content:encoded><![CDATA[<p>better decision from me:</p>
<p>!-[1,]</p>
<p>returns true in IE and false in all others</p>
<p>or even</p>
<p>-[1,]</p>
<p>returns NaN in IE and -1 in all other browsers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/#comment-1439</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Thu, 29 Jan 2009 09:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=335#comment-1439</guid>
		<description>@rvdh

Yes initially I had the same thoughts but when you think of it in the context of a js library your detection has to be independent of the web site code. E.g. this returns true in Firefox:-

onhelp=function() {
 alert(&#039;Some web site code&#039;);
}
if(onhelp) {
 alert(&#039;Huh this is FF&#039;);
}</description>
		<content:encoded><![CDATA[<p>@rvdh</p>
<p>Yes initially I had the same thoughts but when you think of it in the context of a js library your detection has to be independent of the web site code. E.g. this returns true in Firefox:-</p>
<p>onhelp=function() {<br />
 alert(&#8216;Some web site code&#8217;);<br />
}<br />
if(onhelp) {<br />
 alert(&#8216;Huh this is FF&#8217;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rvdh</title>
		<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/#comment-1438</link>
		<dc:creator>rvdh</dc:creator>
		<pubDate>Thu, 29 Jan 2009 09:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=335#comment-1438</guid>
		<description>onhelp is part of the window property: this.onhelp, therefore you can check if it&#039;s null (which it should be) if it&#039;s set and true, you still know it&#039;s IE cuz the others will fail this property, And of course, &quot;IE&quot; can be overridden as well. ;)</description>
		<content:encoded><![CDATA[<p>onhelp is part of the window property: this.onhelp, therefore you can check if it&#8217;s null (which it should be) if it&#8217;s set and true, you still know it&#8217;s IE cuz the others will fail this property, And of course, &#8220;IE&#8221; can be overridden as well. <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/#comment-1437</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Thu, 29 Jan 2009 08:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=335#comment-1437</guid>
		<description>@rvdh

Yeah but the problem is that onhelp can be defined by a web site. So if a js library wanted to detect which browser it could be wrong.

@MJ

Because this was fun I&#039;m gonna start a new post with some browser detecting hacks :D</description>
		<content:encoded><![CDATA[<p>@rvdh</p>
<p>Yeah but the problem is that onhelp can be defined by a web site. So if a js library wanted to detect which browser it could be wrong.</p>
<p>@MJ</p>
<p>Because this was fun I&#8217;m gonna start a new post with some browser detecting hacks <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rvdh</title>
		<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/#comment-1436</link>
		<dc:creator>rvdh</dc:creator>
		<pubDate>Thu, 29 Jan 2009 08:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=335#comment-1436</guid>
		<description>Or, if you allow a null value as IE proof:

I=onhelp

8. ;)</description>
		<content:encoded><![CDATA[<p>Or, if you allow a null value as IE proof:</p>
<p>I=onhelp</p>
<p>8. <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rvdh</title>
		<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/#comment-1435</link>
		<dc:creator>rvdh</dc:creator>
		<pubDate>Thu, 29 Jan 2009 08:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=335#comment-1435</guid>
		<description>Easy to beat:

I=screenTop

11 ;)</description>
		<content:encoded><![CDATA[<p>Easy to beat:</p>
<p>I=screenTop</p>
<p>11 <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MJ</title>
		<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/#comment-1434</link>
		<dc:creator>MJ</dc:creator>
		<pubDate>Thu, 29 Jan 2009 06:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=335#comment-1434</guid>
		<description>Love it! Now how can we detect IE6 with another dozen bytes or less?</description>
		<content:encoded><![CDATA[<p>Love it! Now how can we detect IE6 with another dozen bytes or less?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cd-MaN</title>
		<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/#comment-1433</link>
		<dc:creator>Cd-MaN</dc:creator>
		<pubDate>Thu, 29 Jan 2009 05:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=335#comment-1433</guid>
		<description>Very cool! You can also abbreviate it to: 

E=&#039;\v&#039;==&#039;v&#039;

Where E is for explorer :-)</description>
		<content:encoded><![CDATA[<p>Very cool! You can also abbreviate it to: </p>
<p>E=&#8217;\v&#8217;==&#8217;v&#8217;</p>
<p>Where E is for explorer <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LightOS</title>
		<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/#comment-1432</link>
		<dc:creator>LightOS</dc:creator>
		<pubDate>Wed, 28 Jan 2009 19:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=335#comment-1432</guid>
		<description>Never fail to impress me Gareth. Wish I had your JS skills.</description>
		<content:encoded><![CDATA[<p>Never fail to impress me Gareth. Wish I had your JS skills.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dblackshell</title>
		<link>http://www.thespanner.co.uk/2009/01/28/detecting-ie-in-12-bytes/#comment-1431</link>
		<dc:creator>dblackshell</dc:creator>
		<pubDate>Wed, 28 Jan 2009 16:43:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=335#comment-1431</guid>
		<description>detecting everything else...

FF=&#039;\v&#039;&lt;&#039;v&#039;

actually tested it only in firefox :)</description>
		<content:encoded><![CDATA[<p>detecting everything else&#8230;</p>
<p>FF=&#8217;\v&#8217;&lt;&#8217;v&#8217;</p>
<p>actually tested it only in firefox <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

