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?
-
-
Replying to @really_bz @bz_moz
Can the message use rich formatting? Using italics (<var>) could make element.querySelector clearer that element is a variable. It's also the convention the
@thedomstandard and@htmlstandard uses in their non-normative API boxes. https://dom.spec.whatwg.org/#ref-for-dom-parentnode-queryselector%E2%91%A0 …1 reply 0 retweets 2 likes -
The message shows up in the devtools console, where maybe we could do that, but also shows up in the .message property of the exception, where having the <var> might be a bit weird...
1 reply 0 retweets 0 likes
Replying to @really_bz @zcorpan and
But it's interesting to think about what could be done along these lines, yes!
6:56 PM - 10 Feb 2020
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.