<button id="foo">foo</button> // don't select foo in any way... but.. foo.onclick = () => alert('still works'); // ... for years now!pic.twitter.com/4yBIlvKrgP
-
-
Well, esp. today, I'VE been around forever, and this is the first I've heard of this. I've been using getElementById, then querySelector.

-
And rightfully so! See the warning in the HTML standard.pic.twitter.com/9QMbnTYyWw
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.