News for hackers. Stuff that matters.
Re:GetElementById vs. QuerySelector by da_chicken on Friday November 26, 2021 @07:03AM (#29349481)
Deflecting to semantics or categorization isn't a defense.
Re:GetElementById vs. QuerySelector by samastur on Friday November 26, 2021 @09:26AM (#29350429)
My point it that it is a defined behaviour of the DOM API which is generally implemented in C++ and exposed to Javascript environment. It behave exactly the same way if you use bindings for any other language. It's not an ECMAScript defined feature.

You can also implement exactly this behaviour in any language so how is this then a Javascript language issue?

Re:GetElementById vs. QuerySelector by christophilus on Friday November 26, 2021 @08:07AM (#29349918)
Similarly, C is crappy because operating system APIs are crappy.