Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

wow TIL `id`s can be used like that


They get added as attributes to "document", they're not truly global: https://stackoverflow.com/questions/3434278/do-dom-tree-elem...

Part of why IDs are supposed to be unique on a page.




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

Search: