document.getElementById() with no args throws. What should the message start with? "Document.getElementById requires ..."? "Document.prototype.getElementById requires ..."? "Document's getElementById requires ..."? "Document#getElementById requires ..."? Something else?
It would also be weird to have `element.querySelector` for the case when `querySelector` is called on some random Element, right?
-
-
It's certainly less "correct" than Element.prototype.querySelector, but I think element.querySelector works better for folks who don't understand prototypes.
-
Hmm. That's fair. I am definitely trying to start a balance between "correct" and "useful" and "not too noisy" here...
- 3 more replies
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.