<?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: Implied globals in browsers</title>
	<atom:link href="http://ajaxian.com/archives/implied-globals-in-browsers/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/implied-globals-in-browsers</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: deadlyicon</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276231</link>
		<dc:creator>deadlyicon</dc:creator>
		<pubDate>Sat, 31 Oct 2009 07:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276231</guid>
		<description>I&#039;d love to see some speed tests between the following methods:

&lt;meta name=&quot;MyScope&quot; version=&quot;1.2.3&quot; /&gt;
// vs.
&lt;script  type=&quot;text/javascript&quot;&gt;
  MyScope = ({version:&quot;1.2.3&quot;});
&lt;/script&gt;


also what if you wanted to define `MyScope.name` ? =\</description>
		<content:encoded><![CDATA[<p>I&#8217;d love to see some speed tests between the following methods:</p>
<p>&lt;meta name=&quot;MyScope&quot; version=&quot;1.2.3&quot; /&gt;<br />
// vs.<br />
&lt;script  type=&quot;text/javascript&quot;&gt;<br />
  MyScope = ({version:&quot;1.2.3&quot;});<br />
&lt;/script&gt;</p>
<p>also what if you wanted to define `MyScope.name` ? =\</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deadlyicon</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276230</link>
		<dc:creator>deadlyicon</dc:creator>
		<pubDate>Sat, 31 Oct 2009 07:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276230</guid>
		<description>I&#039;d love to see some speed tests between the following methods:


// vs.

  MyScope = ({version:&quot;1.2.3&quot;});



also what if you wanted to define `MyScope.name` ? =\</description>
		<content:encoded><![CDATA[<p>I&#8217;d love to see some speed tests between the following methods:</p>
<p>// vs.</p>
<p>  MyScope = ({version:&#8221;1.2.3&#8243;});</p>
<p>also what if you wanted to define `MyScope.name` ? =\</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mjuhl</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276186</link>
		<dc:creator>mjuhl</dc:creator>
		<pubDate>Wed, 28 Oct 2009 22:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276186</guid>
		<description>Good knowledge to have. I strongly dislike polluted global name spaces.</description>
		<content:encoded><![CDATA[<p>Good knowledge to have. I strongly dislike polluted global name spaces.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ExtAnimal</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276097</link>
		<dc:creator>ExtAnimal</dc:creator>
		<pubDate>Thu, 22 Oct 2009 13:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276097</guid>
		<description>Pointless.</description>
		<content:encoded><![CDATA[<p>Pointless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fcaldera</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276083</link>
		<dc:creator>fcaldera</dc:creator>
		<pubDate>Thu, 22 Oct 2009 07:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276083</guid>
		<description>I noticed this weird behaviour some times ago, when I wrote a page with the meta &quot;copyright&quot; and a form with a field whose id was &#039;copyright&#039;</description>
		<content:encoded><![CDATA[<p>I noticed this weird behaviour some times ago, when I wrote a page with the meta &#8220;copyright&#8221; and a form with a field whose id was &#8216;copyright&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fabienmenager</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276081</link>
		<dc:creator>fabienmenager</dc:creator>
		<pubDate>Thu, 22 Oct 2009 06:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276081</guid>
		<description>@vcohen, this doc is irrelevent, as it only deals with the anchor tag, not at all with getElementById which should ONLY look at the id. Anyway, there really shouldn&#039;t be so many &quot;shortcuts&quot; to nodes from the DOM without any explicit action, this may decrease performance too. I think this is the kind of stuff that makes IE even slower than it should. Firefox 3.5 seems to do the right thing : it doesn&#039;t make variables from everything in the DOM.</description>
		<content:encoded><![CDATA[<p>@vcohen, this doc is irrelevent, as it only deals with the anchor tag, not at all with getElementById which should ONLY look at the id. Anyway, there really shouldn&#8217;t be so many &#8220;shortcuts&#8221; to nodes from the DOM without any explicit action, this may decrease performance too. I think this is the kind of stuff that makes IE even slower than it should. Firefox 3.5 seems to do the right thing : it doesn&#8217;t make variables from everything in the DOM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stoyan</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276072</link>
		<dc:creator>stoyan</dc:creator>
		<pubDate>Wed, 21 Oct 2009 20:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276072</guid>
		<description>@jaysmith @willbo
I didn&#039;t think you can do anything useful with it (WillPeavy proves me wrong though), but more of a heads-up. Imagine your app dynamically creates a textarea with id=&quot;description&quot; after some user interaction. Somewhere else in the code you want to check if this textarea exists. So you go:

&lt;code&gt;if (document.getElementById(&#039;description&#039;)){}&lt;/code&gt;

and IE will wrongly evaluate this to true because your SEO guy added meta tags and broke your app :)

@Schill - yes, it was dissapointing that other browsers have followed. I guess it was meant to help the developer, but the road to hell is paved with good intentions ;)

@Darkimmortal - yes, that&#039;s the result of running the test page in Firefox - the only browser that didn&#039;t create globals for no good reason.</description>
		<content:encoded><![CDATA[<p>@jaysmith @willbo<br />
I didn&#8217;t think you can do anything useful with it (WillPeavy proves me wrong though), but more of a heads-up. Imagine your app dynamically creates a textarea with id=&#8221;description&#8221; after some user interaction. Somewhere else in the code you want to check if this textarea exists. So you go:</p>
<p><code>if (document.getElementById('description')){}</code></p>
<p>and IE will wrongly evaluate this to true because your SEO guy added meta tags and broke your app :)</p>
<p>@Schill &#8211; yes, it was dissapointing that other browsers have followed. I guess it was meant to help the developer, but the road to hell is paved with good intentions ;)</p>
<p>@Darkimmortal &#8211; yes, that&#8217;s the result of running the test page in Firefox &#8211; the only browser that didn&#8217;t create globals for no good reason.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jdalton</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276070</link>
		<dc:creator>jdalton</dc:creator>
		<pubDate>Wed, 21 Oct 2009 19:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276070</guid>
		<description>additional info can be found:
.
http://www.jibbering.com/faq/#propertyAccess</description>
		<content:encoded><![CDATA[<p>additional info can be found:<br />
.<br />
<a href="http://www.jibbering.com/faq/#propertyAccess" rel="nofollow">http://www.jibbering.com/faq/#propertyAccess</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SubtleGradient</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276069</link>
		<dc:creator>SubtleGradient</dc:creator>
		<pubDate>Wed, 21 Oct 2009 19:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276069</guid>
		<description>Do you have more than 1 browser installed?

Nonsense like this is why everyone I know has long ago stopped reading Ajaxian.</description>
		<content:encoded><![CDATA[<p>Do you have more than 1 browser installed?</p>
<p>Nonsense like this is why everyone I know has long ago stopped reading Ajaxian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darkimmortal</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276067</link>
		<dc:creator>Darkimmortal</dc:creator>
		<pubDate>Wed, 21 Oct 2009 17:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276067</guid>
		<description>description: undefined
robots: undefined
paragraph-id: undefined
paragraph-name: undefined
form-name: undefined
form-id: undefined
input-name: undefined
input-id: undefined
link-name: undefined
link-id: undefined
div-name: undefined
div-id: undefined

:3</description>
		<content:encoded><![CDATA[<p>description: undefined<br />
robots: undefined<br />
paragraph-id: undefined<br />
paragraph-name: undefined<br />
form-name: undefined<br />
form-id: undefined<br />
input-name: undefined<br />
input-id: undefined<br />
link-name: undefined<br />
link-id: undefined<br />
div-name: undefined<br />
div-id: undefined</p>
<p>:3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schill</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276066</link>
		<dc:creator>Schill</dc:creator>
		<pubDate>Wed, 21 Oct 2009 17:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276066</guid>
		<description>&quot;tags&quot; (and unsurprisingly, &quot;all&quot;) are other &quot;reserved&quot;-type keywords that IE doesn&#039;t like - or rather, has native DOM ties. I&#039;m surprised that description shows up in other browsers, though; didn&#039;t expect that.</description>
		<content:encoded><![CDATA[<p>&#8220;tags&#8221; (and unsurprisingly, &#8220;all&#8221;) are other &#8220;reserved&#8221;-type keywords that IE doesn&#8217;t like &#8211; or rather, has native DOM ties. I&#8217;m surprised that description shows up in other browsers, though; didn&#8217;t expect that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sentientholon</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276065</link>
		<dc:creator>sentientholon</dc:creator>
		<pubDate>Wed, 21 Oct 2009 17:18:10 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276065</guid>
		<description>My understanding was that IE browsers will always look at the name property for getElementById(), not just in meta tags.</description>
		<content:encoded><![CDATA[<p>My understanding was that IE browsers will always look at the name property for getElementById(), not just in meta tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WillPeavy</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276064</link>
		<dc:creator>WillPeavy</dc:creator>
		<pubDate>Wed, 21 Oct 2009 17:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276064</guid>
		<description>@jaysmith + willbo: I&#039;ve used something like this on a project where I had to customize a third party app, but didn&#039;t have direct access to metas.</description>
		<content:encoded><![CDATA[<p>@jaysmith + willbo: I&#8217;ve used something like this on a project where I had to customize a third party app, but didn&#8217;t have direct access to metas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: willbo</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276060</link>
		<dc:creator>willbo</dc:creator>
		<pubDate>Wed, 21 Oct 2009 16:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276060</guid>
		<description>@jaysmith: More to the point, SHOULD we do anything with it? Likely answer is no.</description>
		<content:encoded><![CDATA[<p>@jaysmith: More to the point, SHOULD we do anything with it? Likely answer is no.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaysmith</title>
		<link>http://ajaxian.com/archives/implied-globals-in-browsers/comment-page-1#comment-276059</link>
		<dc:creator>jaysmith</dc:creator>
		<pubDate>Wed, 21 Oct 2009 15:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7740#comment-276059</guid>
		<description>Chris,
what are the applications of this easter egg? Could we do anything useful with this data?</description>
		<content:encoded><![CDATA[<p>Chris,<br />
what are the applications of this easter egg? Could we do anything useful with this data?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

