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.

0.046 || Powered by WordPress