Hacker News new | past | comments | ask | show | jobs | submit login

>Once a website reaches a certain scale (especially with rich web apps), global DOM id's become an almost impossible headache to deal with (because of multiple views which duplicate id's, coordination of global names across hundreds of files, etc.).

The most effective way I've found to deal with them in those circumstances is to have them generated automatically at runtime when they are absolutely required. It's still a terribly backwards way of doing things, but at least you can ensure their uniqueness that way.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: