Re: [dom] Factor getElementsBy* into ParentNode or NonElementParentNode? (#68)

I think I'm just not buying into the initial premise that Live HTML collections are bad (which are returned by the getElementsBy* methods, thus we should avoid making them available to new derived objects like ShadowRoot. If they were so bad, why was getElementsByClassName added so [relatively] recently? Yes, querySelectors and family are generalizations of these APIs, but there is something to be said for being able to optimize a specialized API in implementation, and frankly to have a choice of usage is also good IMO. Finally, there is no implementation burden. All these points have been made before as I read the above links.

Yet, not having read those discussions initially, and after reviewing the Shadow DOM and DOM specs, this seemed like a glaring omission. I'm certain other JavaScript authors will see it the same way and wonder, "why not?".

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/68#issuecomment-137809636

Received on Friday, 4 September 2015 18:13:50 UTC