Winternet

Internet Explorer’s Javascript Engine Pollutes the Global Namespace

Filed under: — jwinter on 7/10/2004 at 7:26 pm

IE pollutes the global namespace with all of the ids and names from any form elements in the document. If you happen to have an id called parent_id and a Javascript variable called parent_id, your scripts will not run as expected.

It’s a good habit to declare variables with var in Javascript, but still, it’s annoying that IE does this.

1 Comment »

The URI to TrackBack this entry is: http://www.jwinter.org/log/archives/2004/07/10/internet-explorers-javascript-engine-pollutes-the-global-namespace/trackback/

  1. Please visit the sites dedicated to bad credit home loan california

    Comment by house loans — 4/14/2005 @ 8:30 am

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


0.127 || Powered by WordPress