Re: [dom] Upgrade addedNodes and removedNodes to FrozenArray? (#54)

I think we just won't be able to get rid of many *List interfaces unless we come up with a good way of adding things like `item()` to the arrays. There is `[LegacyArrayClass]`, but as the name suggests that's no longer in vogue. Implemented as JS it would be trivial—just set `array.item = function (n) { return this[n]; }` before freezing it, not sure if this is a serious option or not. (It would move `item` from the prototype to the object, but that's pretty likely to be web compatible.)

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

Received on Tuesday, 14 July 2015 22:35:57 UTC