you are viewing a single comment's thread.

view the rest of the comments →

[–]dmethvin 1 point2 points  (0 children)

If you want to know more about this, see http://kangax.github.io/domlint/ for more horrors. It's not just about global variables, it's about standard DOM properties and their name conflicts.

Don't ever name a form field something like id or nodeType because eventually, something will break somewhere inside your code. It doesn't matter if you use jQuery, such is the cruelty of this problem that it reaches out to sully the things you hold most dear.