On Mon, Aug 29, 2011 at 9:40 AM, Aryeh Gregor <[email protected]> wrote: > On Thu, Aug 25, 2011 at 7:17 PM, Jonas Sicking <[email protected]> wrote: >> .push and .pop are generic and work on anything that looks like an >> Array. However they don't work on NodeList because NodeList isn't >> mutable. >> >> . . . >> >> None of these are *mutable* functions. > > Oh, right. I misunderstood you. Yes, obviously we wouldn't expose > things like .push or .pop on NodeList, since they wouldn't make sense. > But we should expose things like .forEach, etc. Any reason not to?
My point was that it was a mistake for querySelectorAll to return a NodeList. It should have returned an Array. Sounds like people agree with that then? / Jonas
