Y
Hacker News
new
|
ask
|
show
|
jobs
by
monkpit
1362 days ago
It hurts
1 comments
SpaceL10n
1362 days ago
I think it would hurt less with TypeScript global types. Just need to know what IDs you'd expect to find in the DOM.
link
err4nt
1362 days ago
the ID's in DOM will never conflict or cause an issue with your own JS code. You can't reliably use 'named access on the window object' (the name of this feature) because of this, so it's never a problem, and also largely useless.
link