<?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>House of Metnetsky &#187; firefox</title>
	<atom:link href="http://cowarthill.com/blog/index.php/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://cowarthill.com/blog</link>
	<description>Run Tortoise Run</description>
	<lastBuildDate>Fri, 26 Feb 2010 17:15:33 +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>Array.length anybody?</title>
		<link>http://cowarthill.com/blog/index.php/2008/12/03/js-array-length/</link>
		<comments>http://cowarthill.com/blog/index.php/2008/12/03/js-array-length/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 23:12:44 +0000</pubDate>
		<dc:creator>MET</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[ie8]]></category>

		<guid isPermaLink="false">http://cowarthill.com/blog/?p=76</guid>
		<description><![CDATA[I came across a fun little issue today that I think should have been more obvious to me. Apparently, and I can&#8217;t believe I&#8217;m saying this: IE and Firefox parse Javascript differently. Take the following code: What should the length be? In Firefox 2 &#38; 3 the length is 2, but in IE7/IE8 the length [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a fun little issue today that I think should have been more obvious to me. Apparently, and I can&#8217;t believe I&#8217;m saying this: IE and Firefox parse Javascript differently. Take the following code:</p>
<pre class="brush: jscript; title: ; notranslate">
var foo = [
{'one': 1},
{'two': 2},
];
</pre>
<p>What should the length be? In Firefox 2 &amp; 3 the length is 2, but in IE7/IE8 the length is 3. I can&#8217;t confirm this, but considering I figured this out due to a *NEW* bug in one of our products, I think this is <strong>somewhat</strong> new in IE.</p>
<p>On a side note, it&#8217;s interesting that IE even parses the above considering the following code will break:</p>
<pre class="brush: jscript; title: ; notranslate">
var foo = {
'one': 1,
'two': 2,
}
</pre>
<p>The difference here is of course that <strong>foo</strong> in the second example is an <strong>object</strong>, whereas the first example it&#8217;s an <strong>array</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cowarthill.com/blog/index.php/2008/12/03/js-array-length/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

