this is a big DON'T
For sure a bad idea. Just a little anecdote.
Here's some more web anecdotes
OK, so who's responsible for the capitalization of XMLHttpRequest?
04:58 AM - 04 Oct 2017
Why so? 😨
Because it's seems not standard :/ but you can easely recreate this idea:
document.querySelectorAll("[id]").forEach(el => window[el.id] = el);
It's totally standard.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.