<div dir="ltr"><div>Mark asked a great question last night:<br><br></div>"Why do we need to know what happens when var is omitted?"<br><br>And the answer involves a quirk of MSIE's GlobalScopePolluter.<br><div>
<div><div><div><div><br>"Unsafe Names for Form Controls" article describes it a bit on the page about globals:<br></div><div><a href="http://jsfaq.org/notes/names/extra_props_global.html">jsfaq.org/notes/names/extra_props_global.html</a><br>
<br></div><div>See also linked post by Lasse:<br>
        <a href="http://groups.google.com/group/comp.lang.javascript/msg/aed8ecf1660e1dd1">Why "window.alert()" over "alert()"?</a>,<br><a href="http://groups.google.com/group/comp.lang.javascript/msg/aed8ecf1660e1dd1">http://groups.google.com/group/comp.lang.javascript/msg/aed8ecf1660e1dd1</a><br>
</div><div><br>See:<br><a class="" href="http://markmail.org/message/5eoyv35dan3a55hb">Re: [JSMentors] Namespaces and global variables</a><br><a href="http://markmail.org/message/5eoyv35dan3a55hb">http://markmail.org/message/5eoyv35dan3a55hb</a><br>
<br>More how GlobalScopePolluter affects non-IE browsers, even when `var` is used:<br>Global Scope Polluter, copied from MSIE is and always will be problematic. <a href="http://t.co/wus7XbBK" rel="nofollow" dir="ltr" class="" target="_blank"><span class=""></span><span class="">http://</span><span class="">lists.w3.org/Archives/Publi</span><span class="">c/public-script-coord/2012JulSep/0033.html</span><span class=""><span class=""></span></span></a><br>
<br><a href="http://lists.w3.org/Archives/Public/public-script-coord/2012JulSep/0033.html">http://lists.w3.org/Archives/Public/public-script-coord/2012JulSep/0033.html</a><br>-- <br><div dir="ltr">Garrett<br>@xkit<br><div>
<a href="http://ChordCycles.com" target="_blank">ChordCycles.com</a><br></div></div>
</div></div></div></div></div></div>