Re: [whatwg/dom] Suggestion: new method - getNodesByType (#992)

Live collections are discouraged these days though, so getElementsByClassName is a bad example, as querySelectorAll is what modern code should use, but GitHub doesn’t tell you how deprecated are those results, yet it stores the history of the web. You can search for jQuery or Prototype too there, it doesn’t reflect reality.

That being said, why don’t you publish a module that implements what you’re after and demonstrate afterwards it’s totally needed on the DOM API too?  With all the new APIs out there and issues, something covered by more than one lower level API in 3 LOC, doesn’t look important or worth time to me, but feel free to prove me wrong on that, and make a module everyone uses ‘cause those 3 LOC are a real issue.

looking forward to be proven wrong, although that’s another way to convince vendors, from time to time 👍

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/992#issuecomment-867167037

Received on Wednesday, 23 June 2021 21:21:55 UTC