3 ms·
> I'm surprised by the number of comments like this. The sentiment is borne out by the facts when you dig a little deeper. Just calling document.getElementById
by lukeschlather 14y ago
> I'm surprised by the number of comments like this.
The sentiment is borne out by the facts when you dig a little deeper. Just calling document.getElementById without using the return value does not actually dig into the DOM and find the element according to this comment: http://news.ycombinator.com/item?id=4436438 http://news.ycombinator.com/item?id=4436438