News for hackers. Stuff that matters.
Re:TinyJS – Shorten JavaScript QuerySelect with $ and $$ by o11c on Wednesday October 02, 2024 @09:03PM (#41726369)
Should that be `Object.create(null)` to avoid problems with `<div id="toString"/>`?
Re:TinyJS – Shorten JavaScript QuerySelect with $ and $$ by akira2501 on Thursday October 03, 2024 @04:28AM (#41728499)
A call to `$id.toString` actually yields the native unbound function whether or not there is such an element on the page. So get is not invoked in this case.