TIL: this works with no querySelector!
<span id="foo"></span>
foo.innerHTML = "U kidding me?"
HT @rillian, @bz_mozhttps://twitter.com/bz_moz/status/732332291842772993 …
-
-
welcome to fun land, where elements with an `id` attribute create global-namespace-polluting references.
2 replies 0 retweets 0 likes -
Replying to @TheRealPomax @humphd and
for truly hilarious behaviour, use global-conflicting ids and watch your code blow up!
1 reply 0 retweets 0 likes -
global-conflicting ids in what sense?
1 reply 0 retweets 0 likes -
Replying to @really_bz @bz_moz and
use an id, expect this behaviour, think you'll get the element, actually get some JS global object.
1 reply 0 retweets 0 likes
Oh, yeah. _Relying_ on this behavior is just a bad idea.
11:50 PM - 16 May 2016
0 replies
0 retweets
0 likes
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.